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>2016-09-22 15:11:44 +0300
committerJaime van Kessel <nallath@gmail.com>2016-09-22 15:11:44 +0300
commit4792aadc3ab8fc33084d012342b2afbd80890968 (patch)
tree3491429dd08d6d41d8b147eb6446962b693fc12e /cura/PlatformPhysics.py
parent983e963dd3a209fe3a7a0ffee1a17946eda603d1 (diff)
Platform collision no longer crashes if node has no parent
CURA-2443
Diffstat (limited to 'cura/PlatformPhysics.py')
-rw-r--r--cura/PlatformPhysics.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cura/PlatformPhysics.py b/cura/PlatformPhysics.py
index 2a5bd4091c..4325703a37 100644
--- a/cura/PlatformPhysics.py
+++ b/cura/PlatformPhysics.py
@@ -102,7 +102,7 @@ class PlatformPhysics:
continue
# Ignore collisions within a group
- if other_node.getParent().callDecoration("isGroup") is not None or node.getParent().callDecoration("isGroup") is not None:
+ if other_node.getParent() and node.getParent() and (other_node.getParent().callDecoration("isGroup") is not None or node.getParent().callDecoration("isGroup") is not None):
continue
# Ignore nodes that do not have the right properties set.