From 4792aadc3ab8fc33084d012342b2afbd80890968 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Thu, 22 Sep 2016 14:11:44 +0200 Subject: [PATCH] Platform collision no longer crashes if node has no parent CURA-2443 --- cura/PlatformPhysics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.