Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2021-12-16 00:00:20 +0300
committerHans Goudey <h.goudey@me.com>2021-12-16 00:00:20 +0300
commit49311a73b8ec4bbbf8ed1c12677545ca39c277cf (patch)
tree9d516eca5c4b05b0b06627488a8e6111c32e270f
parentaa55cb2996d4f9a87493d8a0cf602724884703b8 (diff)
Fix: Crash in nodes modifier with missing node group
We cannot depend on node->id being non-null for group nodes.
-rw-r--r--source/blender/modifiers/intern/MOD_nodes.cc2
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;
}
}