mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Fix loading parented objects from 3mf files
This commit is contained in:
parent
5a9bcf446e
commit
d123efd3eb
2 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ class BuildPlateDecorator(SceneNodeDecorator):
|
|||
self._build_plate_number = nr
|
||||
if isinstance(self._node, CuraSceneNode):
|
||||
self._node.transformChanged() # trigger refresh node without introducing a new signal
|
||||
if self._node and self._node.callDecoration("isGroup"):
|
||||
if self._node:
|
||||
for child in self._node.getChildren():
|
||||
child.callDecoration("setBuildPlateNumber", nr)
|
||||
|
||||
|
|
|
@ -137,7 +137,7 @@ class ThreeMFReader(MeshReader):
|
|||
continue
|
||||
setting_container.setProperty(key, "value", setting_value)
|
||||
|
||||
if len(um_node.getChildren()) > 0:
|
||||
if len(um_node.getChildren()) > 0 and um_node.getMeshData() is None:
|
||||
group_decorator = GroupDecorator()
|
||||
um_node.addDecorator(group_decorator)
|
||||
um_node.setSelectable(True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue