diff options
author | Hans Goudey <h.goudey@me.com> | 2021-12-16 00:00:20 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-12-16 00:00:20 +0300 |
commit | 49311a73b8ec4bbbf8ed1c12677545ca39c277cf (patch) | |
tree | 9d516eca5c4b05b0b06627488a8e6111c32e270f /source/blender/modifiers/intern | |
parent | aa55cb2996d4f9a87493d8a0cf602724884703b8 (diff) |
Fix: Crash in nodes modifier with missing node group
We cannot depend on node->id being non-null for group nodes.
Diffstat (limited to 'source/blender/modifiers/intern')
-rw-r--r-- | source/blender/modifiers/intern/MOD_nodes.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_nodes.cc b/source/blender/modifiers/intern/MOD_nodes.cc index 211257597cb..ec6cbeb43bf 100644 --- a/source/blender/modifiers/intern/MOD_nodes.cc +++ b/source/blender/modifiers/intern/MOD_nodes.cc @@ -280,7 +280,7 @@ static bool check_tree_for_time_node(const bNodeTree &tree, } if (node->type == NODE_GROUP) { const bNodeTree *sub_tree = reinterpret_cast<const bNodeTree *>(node->id); - if (check_tree_for_time_node(*sub_tree, r_checked_trees)) { + if (sub_tree && check_tree_for_time_node(*sub_tree, r_checked_trees)) { return true; } } |