diff options
author | Lipu Fei <lipu.fei815@gmail.com> | 2018-01-23 14:38:59 +0300 |
---|---|---|
committer | Lipu Fei <lipu.fei815@gmail.com> | 2018-01-23 14:38:59 +0300 |
commit | d3e85e63709d43e8c989c396c8b8d42bc1cc3284 (patch) | |
tree | 8f98c925a8b2725d68b9c5981cffbe431d6f8783 /cura/PlatformPhysics.py | |
parent | 3ec4cc6a0ba466df7d454084b51a0becbc3d7d32 (diff) |
Revert "Do boundary checks on nodes for which the boundary check is unknown"
This reverts commit 27e441ecd9642530b5b8f8fe949cff152d54dcba.
Diffstat (limited to 'cura/PlatformPhysics.py')
-rwxr-xr-x | cura/PlatformPhysics.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/cura/PlatformPhysics.py b/cura/PlatformPhysics.py index 05385d7c71..cf4dd83fef 100755 --- a/cura/PlatformPhysics.py +++ b/cura/PlatformPhysics.py @@ -56,17 +56,14 @@ class PlatformPhysics: # 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 getattr(node, "_outside_buildarea", False)] + random.shuffle(nodes) for node in nodes: if node is root or not isinstance(node, SceneNode) or node.getBoundingBox() is None: continue - #Only check nodes inside the build area. - if not hasattr(node, "_outside_buildarea"): - self._build_volume.updateNodeBoundaryCheck(node) - if getattr(node, "_outside_buildarea", True): - continue - bbox = node.getBoundingBox() # Move it downwards if bottom is above platform @@ -158,7 +155,7 @@ class PlatformPhysics: # After moving, we have to evaluate the boundary checks for nodes build_volume = Application.getInstance().getBuildVolume() - build_volume.updateAllBoundaryChecks() + build_volume.updateNodeBoundaryCheck() def _onToolOperationStarted(self, tool): self._enabled = False |