mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 04:39:06 +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
|
||||
|
||||
# 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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user