Only 3mf nodes with mesh data are getting the sliceable object decorator. CURA-3559

This commit is contained in:
Jack Ha 2017-03-20 14:43:46 +01:00
parent 2b17f9665f
commit 48c6c523ec

View file

@ -145,7 +145,9 @@ class ThreeMFReader(MeshReader):
group_decorator = GroupDecorator()
um_node.addDecorator(group_decorator)
um_node.setSelectable(True)
# Assuming that all nodes are printable objects, affects (auto) slicing
if um_node.getMeshData():
# Assuming that all nodes with mesh data are printable objects
# affects (auto) slicing
sliceable_decorator = SliceableObjectDecorator()
um_node.addDecorator(sliceable_decorator)
return um_node