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:
authorJaime van Kessel <nallath@gmail.com>2019-08-02 15:40:59 +0300
committerJaime van Kessel <nallath@gmail.com>2019-08-02 15:40:59 +0300
commitc35c8e0f5068cdd753ef18a024bc06396237e699 (patch)
treeedd2e1e90300b94d5c3b3cf35eb4e2e69a6c3370 /cura/PlatformPhysics.py
parentb0385ecd6821bac69bf5d91cfe38ff0de9ef1a42 (diff)
Move comments to be above the right bit of code
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 d9876b3b36..46d73f4abf 100755
--- a/cura/PlatformPhysics.py
+++ b/cura/PlatformPhysics.py
@@ -54,13 +54,13 @@ class PlatformPhysics:
# same direction.
transformed_nodes = []
- # 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)]
+ # 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.
random.shuffle(nodes)
for node in nodes:
if node is root or not isinstance(node, SceneNode) or node.getBoundingBox() is None: