Fix boundingbox calculation of grouped groups

Previously this would cause a crash because the bounding box of the outermost
group would not take the bounding boxes of it's children's children into acocunt.

CURA-6501
This commit is contained in:
Jaime van Kessel 2019-05-06 11:40:47 +02:00
parent e363f1af94
commit eb690a459f

View file

@ -116,11 +116,11 @@ class CuraSceneNode(SceneNode):
if self._mesh_data:
self._aabb = self._mesh_data.getExtents(self.getWorldTransformation())
for child in self._children:
for child in self.getAllChildren():
if child.callDecoration("isNonPrintingMesh"):
# Non-printing-meshes inside a group should not affect push apart or drop to build plate
continue
if not child._mesh_data:
if not child.getMeshData():
# Nodes without mesh data should not affect bounding boxes of their parents.
continue
if self._aabb is None: