mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Only 3mf nodes with mesh data are getting the sliceable object decorator. CURA-3559
This commit is contained in:
parent
2b17f9665f
commit
48c6c523ec
1 changed files with 5 additions and 3 deletions
|
@ -145,9 +145,11 @@ class ThreeMFReader(MeshReader):
|
||||||
group_decorator = GroupDecorator()
|
group_decorator = GroupDecorator()
|
||||||
um_node.addDecorator(group_decorator)
|
um_node.addDecorator(group_decorator)
|
||||||
um_node.setSelectable(True)
|
um_node.setSelectable(True)
|
||||||
# Assuming that all nodes are printable objects, affects (auto) slicing
|
if um_node.getMeshData():
|
||||||
sliceable_decorator = SliceableObjectDecorator()
|
# Assuming that all nodes with mesh data are printable objects
|
||||||
um_node.addDecorator(sliceable_decorator)
|
# affects (auto) slicing
|
||||||
|
sliceable_decorator = SliceableObjectDecorator()
|
||||||
|
um_node.addDecorator(sliceable_decorator)
|
||||||
return um_node
|
return um_node
|
||||||
|
|
||||||
def read(self, file_name):
|
def read(self, file_name):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue