Fix and regression test for crash during node group updates #104696

Closed
Lukas Tönne wants to merge 4 commits from LukasTonne/blender:nodes-undefined-group-tree-update-crash into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

4 Commits

Author SHA1 Message Date
Lukas Tönne 6677d69fbc No const_cast needed any more for ntreeIsRegistered. 2023-03-08 11:49:45 +01:00
Lukas Tönne ea9c061fee Added dots to comments. 2023-03-08 11:49:45 +01:00
Lukas Tönne f6993f72be Fix for crash during node tree updates when a group tree is undefined.
Undefined trees have no anonymous_attribute_relations, they must be ignored
during the update.
2023-03-08 11:49:45 +01:00
Lukas Tönne 03d142fb5b Added a regression test for crash during node tree update.
Node tree updates can crash if the tree contains a node group that points at an
"undefined" tree type. This can happen if the tree is linked from a library
and the path is lost, or if a custom (python) tree is used and the script is not
run.
2023-03-08 11:49:45 +01:00