mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06: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
1 changed files with 2 additions and 1 deletions
|
@ -57,8 +57,9 @@ class Snapshot:
|
|||
else:
|
||||
bbox = bbox + node.getBoundingBox()
|
||||
|
||||
# If there is no bounding box, it means that there is no model in the buildplate
|
||||
if bbox is None:
|
||||
bbox = AxisAlignedBox()
|
||||
return None
|
||||
|
||||
look_at = bbox.center
|
||||
# guessed size so the objects are hopefully big
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue