diff options
author | Jaime van Kessel <nallath@gmail.com> | 2016-09-22 15:11:44 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2016-09-22 15:11:44 +0300 |
commit | 4792aadc3ab8fc33084d012342b2afbd80890968 (patch) | |
tree | 3491429dd08d6d41d8b147eb6446962b693fc12e /cura/PlatformPhysics.py | |
parent | 983e963dd3a209fe3a7a0ffee1a17946eda603d1 (diff) |
Platform collision no longer crashes if node has no parent
CURA-2443
Diffstat (limited to 'cura/PlatformPhysics.py')
-rw-r--r-- | cura/PlatformPhysics.py | 2 |
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. |