mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 21:48:58 +08: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
@ -116,11 +116,11 @@ class CuraSceneNode(SceneNode):
|
|||||||
if self._mesh_data:
|
if self._mesh_data:
|
||||||
self._aabb = self._mesh_data.getExtents(self.getWorldTransformation())
|
self._aabb = self._mesh_data.getExtents(self.getWorldTransformation())
|
||||||
|
|
||||||
for child in self._children:
|
for child in self.getAllChildren():
|
||||||
if child.callDecoration("isNonPrintingMesh"):
|
if child.callDecoration("isNonPrintingMesh"):
|
||||||
# Non-printing-meshes inside a group should not affect push apart or drop to build plate
|
# Non-printing-meshes inside a group should not affect push apart or drop to build plate
|
||||||
continue
|
continue
|
||||||
if not child._mesh_data:
|
if not child.getMeshData():
|
||||||
# Nodes without mesh data should not affect bounding boxes of their parents.
|
# Nodes without mesh data should not affect bounding boxes of their parents.
|
||||||
continue
|
continue
|
||||||
if self._aabb is None:
|
if self._aabb is None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user