mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 20:59:02 +08:00
CURA-4931 Avoid creating a snapshot when there is no model in the buildplate. Since the writeStarted signal is catched by all the Writers, the createSnapshot method is triggered, but there is no scenenode in the buildplate to take a picture of, so the process is skipped
This commit is contained in:
parent
e157d8e045
commit
487608574a
@ -57,8 +57,9 @@ class Snapshot:
|
|||||||
else:
|
else:
|
||||||
bbox = bbox + node.getBoundingBox()
|
bbox = bbox + node.getBoundingBox()
|
||||||
|
|
||||||
|
# If there is no bounding box, it means that there is no model in the buildplate
|
||||||
if bbox is None:
|
if bbox is None:
|
||||||
bbox = AxisAlignedBox()
|
return None
|
||||||
|
|
||||||
look_at = bbox.center
|
look_at = bbox.center
|
||||||
# guessed size so the objects are hopefully big
|
# guessed size so the objects are hopefully big
|
||||||
|
Loading…
x
Reference in New Issue
Block a user