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:
authorLipu Fei <lipu.fei815@gmail.com>2018-01-23 14:39:15 +0300
committerLipu Fei <lipu.fei815@gmail.com>2018-01-23 14:39:15 +0300
commit710e3c162990e3c02958dfdb04ece18170bbcc89 (patch)
treeb16c320034bbdcc4dbb9dcbc5ca6d9fe7c913bec /cura/PlatformPhysics.py
parentf45de9654b04544c3cb34dda37ea4a578de2772d (diff)
Revert "Simplify check for _outside_buildarea"
This reverts commit 5c8d46b5c2ff27ff32bfc8e27451d3f8764accf8.
Diffstat (limited to 'cura/PlatformPhysics.py')
-rwxr-xr-xcura/PlatformPhysics.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cura/PlatformPhysics.py b/cura/PlatformPhysics.py
index cf4dd83fef..69890178e4 100755
--- a/cura/PlatformPhysics.py
+++ b/cura/PlatformPhysics.py
@@ -1,4 +1,4 @@
-# Copyright (c) 2018 Ultimaker B.V.
+# Copyright (c) 2015 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
from PyQt5.QtCore import QTimer
@@ -57,7 +57,7 @@ class PlatformPhysics:
nodes = list(BreadthFirstIterator(root))
# Only check nodes inside build area.
- nodes = [node for node in nodes if getattr(node, "_outside_buildarea", False)]
+ nodes = [node for node in nodes if (hasattr(node, "_outside_buildarea") and not node._outside_buildarea)]
random.shuffle(nodes)
for node in nodes: