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:
Diego Prado Gesto 2018-02-08 17:02:11 +01:00
parent e157d8e045
commit 487608574a

View file

@ -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