mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-16 18:05:56 +08:00
Fix scale for just ungrouped objects
CURA-6565 Same as in Uranium _calculateAABB()
This commit is contained in:
parent
6e053e0bb6
commit
c2b866fd05
@ -115,6 +115,9 @@ class CuraSceneNode(SceneNode):
|
|||||||
self._aabb = None
|
self._aabb = None
|
||||||
if self._mesh_data:
|
if self._mesh_data:
|
||||||
self._aabb = self._mesh_data.getExtents(self.getWorldTransformation())
|
self._aabb = self._mesh_data.getExtents(self.getWorldTransformation())
|
||||||
|
else: # If there is no mesh_data, use a boundingbox that encompasses the local (0,0,0)
|
||||||
|
position = self.getWorldPosition()
|
||||||
|
self._aabb = AxisAlignedBox(minimum=position, maximum=position)
|
||||||
|
|
||||||
for child in self.getAllChildren():
|
for child in self.getAllChildren():
|
||||||
if child.callDecoration("isNonPrintingMesh"):
|
if child.callDecoration("isNonPrintingMesh"):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user