Fix scale for just ungrouped objects

CURA-6565

Same as in Uranium _calculateAABB()
This commit is contained in:
Lipu Fei 2019-06-05 13:28:03 +02:00
parent 6e053e0bb6
commit c2b866fd05

View file

@ -115,6 +115,9 @@ class CuraSceneNode(SceneNode):
self._aabb = None
if self._mesh_data:
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():
if child.callDecoration("isNonPrintingMesh"):