mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 06:33:55 -06:00
Platform collision no longer crashes if node has no parent
CURA-2443
This commit is contained in:
parent
983e963dd3
commit
4792aadc3a
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue