From 487608574a02062550056c7c72c5e139a37dfb3c Mon Sep 17 00:00:00 2001 From: Diego Prado Gesto Date: Thu, 8 Feb 2018 17:02:11 +0100 Subject: [PATCH] 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 --- cura/Snapshot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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