Revert "Do boundary checks on nodes for which the boundary check is unknown"

This reverts commit 27e441ecd9.
This commit is contained in:
Lipu Fei 2018-01-23 12:38:59 +01:00
parent 3ec4cc6a0b
commit d3e85e6370
2 changed files with 47 additions and 48 deletions

View file

@ -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