Fix: Crash in nodes modifier with missing node group

We cannot depend on node->id being non-null for group nodes.
This commit is contained in:
Hans Goudey 2021-12-15 15:00:20 -06:00
parent aa55cb2996
commit 49311a73b8
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}