Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Prado Gesto <d.pradogesto@ultimaker.com>2018-02-08 19:02:11 +0300
committerDiego Prado Gesto <d.pradogesto@ultimaker.com>2018-02-08 19:02:11 +0300
commit487608574a02062550056c7c72c5e139a37dfb3c (patch)
tree516439cdde82d16ee79fe4aaa91d99a68c00c64e /cura/Snapshot.py
parente157d8e0455143cdb52afad430563352e0464a12 (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.py3
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