From a6fea1bf40d29bd960a3e899695d34285932d37f Mon Sep 17 00:00:00 2001 From: Lipu Fei Date: Tue, 4 Jun 2019 07:43:56 +0200 Subject: [PATCH] Simplify check CURA-6545 --- cura/Snapshot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cura/Snapshot.py b/cura/Snapshot.py index 0410d8670d..04e13165ef 100644 --- a/cura/Snapshot.py +++ b/cura/Snapshot.py @@ -48,7 +48,7 @@ class Snapshot: # determine zoom and look at bbox = None for node in DepthFirstIterator(root): - if hasattr(node, "_outside_buildarea") and not node._outside_buildarea: + if not getattr(node, "_outside_buildarea", False): if node.callDecoration("isSliceable") and node.getMeshData() and node.isVisible() and not node.callDecoration("isNonThumbnailVisibleMesh"): if bbox is None: bbox = node.getBoundingBox()