From eb690a459f311779161c471f52877c6b07e16a4a Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Mon, 6 May 2019 11:40:47 +0200 Subject: [PATCH] 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 --- cura/Scene/CuraSceneNode.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cura/Scene/CuraSceneNode.py b/cura/Scene/CuraSceneNode.py index 4fd8f2b983..1983bc6008 100644 --- a/cura/Scene/CuraSceneNode.py +++ b/cura/Scene/CuraSceneNode.py @@ -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: