Revert "Simplify check for _outside_buildarea"

This reverts commit 5c8d46b5c2ff27ff32bfc8e27451d3f8764accf8.
This commit is contained in:
Lipu Fei 2018-01-23 12:39:15 +01:00
parent f45de9654b
commit 710e3c1629

View File

@ -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. # Cura is released under the terms of the LGPLv3 or higher.
from PyQt5.QtCore import QTimer from PyQt5.QtCore import QTimer
@ -57,7 +57,7 @@ class PlatformPhysics:
nodes = list(BreadthFirstIterator(root)) nodes = list(BreadthFirstIterator(root))
# Only check nodes inside build area. # 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) random.shuffle(nodes)
for node in nodes: for node in nodes: