mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 04:29:01 +08:00
CURA-4425 Avoid adding the center bounding box. Revert some previous changes.
This commit is contained in:
parent
433176d25a
commit
c432646908
@ -24,10 +24,15 @@ class Snapshot:
|
||||
camera = Camera("snapshot", root)
|
||||
|
||||
# determine zoom and look at
|
||||
bbox = AxisAlignedBox()
|
||||
bbox = None
|
||||
for node in DepthFirstIterator(root):
|
||||
if node.callDecoration("isSliceable") and node.getMeshData() and node.isVisible():
|
||||
if bbox is None:
|
||||
bbox = node.getBoundingBox()
|
||||
else:
|
||||
bbox = bbox + node.getBoundingBox()
|
||||
if bbox is None:
|
||||
bbox = AxisAlignedBox()
|
||||
|
||||
look_at = bbox.center
|
||||
size = max(bbox.width, bbox.height, bbox.depth * 0.5)
|
||||
|
Loading…
x
Reference in New Issue
Block a user