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:
parent
aa55cb2996
commit
49311a73b8
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue