Browse Source

Simplify check

CURA-6545
Lipu Fei 5 years ago
parent
commit
a6fea1bf40
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cura/Snapshot.py

+ 1 - 1
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()