mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
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:
parent
e363f1af94
commit
eb690a459f
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue