From 49311a73b8ec4bbbf8ed1c12677545ca39c277cf Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Wed, 15 Dec 2021 15:00:20 -0600 Subject: Fix: Crash in nodes modifier with missing node group We cannot depend on node->id being non-null for group nodes. --- source/blender/modifiers/intern/MOD_nodes.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(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; } } -- cgit v1.2.3