diff options
author | Diego Prado Gesto <d.pradogesto@ultimaker.com> | 2018-02-08 19:02:11 +0300 |
---|---|---|
committer | Diego Prado Gesto <d.pradogesto@ultimaker.com> | 2018-02-08 19:02:11 +0300 |
commit | 487608574a02062550056c7c72c5e139a37dfb3c (patch) | |
tree | 516439cdde82d16ee79fe4aaa91d99a68c00c64e /cura/Snapshot.py | |
parent | e157d8e0455143cdb52afad430563352e0464a12 (diff) |
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
Diffstat (limited to 'cura/Snapshot.py')
-rw-r--r-- | cura/Snapshot.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cura/Snapshot.py b/cura/Snapshot.py index 50bbf99008..2a2a49d6cf 100644 --- a/cura/Snapshot.py +++ b/cura/Snapshot.py @@ -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 |