mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 21:05:55 +08:00
Platform collision no longer crashes if node has no parent
CURA-2443
This commit is contained in:
parent
983e963dd3
commit
4792aadc3a
@ -102,7 +102,7 @@ class PlatformPhysics:
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
# Ignore collisions within a group
|
# 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
|
continue
|
||||||
|
|
||||||
# Ignore nodes that do not have the right properties set.
|
# Ignore nodes that do not have the right properties set.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user