From f9fbd8c02e5804463d15a60d8b96af92a1de2162 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Fri, 7 Apr 2017 16:22:44 +0200 Subject: [PATCH] Only push free nodes inside buildplate --- cura/PlatformPhysics.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cura/PlatformPhysics.py b/cura/PlatformPhysics.py index 9fcd2f9251..b00c5a632c 100755 --- a/cura/PlatformPhysics.py +++ b/cura/PlatformPhysics.py @@ -54,6 +54,10 @@ class PlatformPhysics: # We try to shuffle all the nodes to prevent "locked" situations, where iteration B inverts iteration A. # By shuffling the order of the nodes, this might happen a few times, but at some point it will resolve. nodes = list(BreadthFirstIterator(root)) + + # Only check nodes inside build area. + nodes = [node for node in nodes if (hasattr(node, "_outside_buildarea") and not node._outside_buildarea)] + random.shuffle(nodes) for node in nodes: if node is root or type(node) is not SceneNode or node.getBoundingBox() is None: