mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 22:46:09 +08:00
Merge pull request #588 from Ultimaker/fix_cura-679
Don't include origin in boundingbox
This commit is contained in:
commit
4d14e375ca
@ -255,13 +255,19 @@ class CuraApplication(QtApplication):
|
|||||||
|
|
||||||
def updatePlatformActivity(self, node = None):
|
def updatePlatformActivity(self, node = None):
|
||||||
count = 0
|
count = 0
|
||||||
scene_boundingbox = AxisAlignedBox()
|
scene_boundingbox = None
|
||||||
for node in DepthFirstIterator(self.getController().getScene().getRoot()):
|
for node in DepthFirstIterator(self.getController().getScene().getRoot()):
|
||||||
if type(node) is not SceneNode or not node.getMeshData():
|
if type(node) is not SceneNode or not node.getMeshData():
|
||||||
continue
|
continue
|
||||||
|
|
||||||
count += 1
|
count += 1
|
||||||
scene_boundingbox += node.getBoundingBox()
|
if not scene_boundingbox:
|
||||||
|
scene_boundingbox = node.getBoundingBox()
|
||||||
|
else:
|
||||||
|
scene_boundingbox += node.getBoundingBox()
|
||||||
|
|
||||||
|
if not scene_boundingbox:
|
||||||
|
scene_boundingbox = AxisAlignedBox()
|
||||||
|
|
||||||
if repr(self._scene_boundingbox) != repr(scene_boundingbox):
|
if repr(self._scene_boundingbox) != repr(scene_boundingbox):
|
||||||
self._scene_boundingbox = scene_boundingbox
|
self._scene_boundingbox = scene_boundingbox
|
||||||
|
Loading…
x
Reference in New Issue
Block a user