Commit: eae2917fde933a8955a4c5d65331ba4151089bdf
Author: Jacques Lucke
Date: Tue Nov 29 13:16:13 2022 +0100
Branches: blender-v3.4-release
https://developer.blender.org/rBeae2917fde933a8955a4c5d65331ba4151089bdf
Fix: crash in node poll function due to missing null check
===================================================================
M source/blender/nodes/intern/node_common.cc
===================================================================
diff --git a/source/blender/nodes/intern/node_common.cc
b/source/blender/nodes/intern/node_common.cc
index f58b102ed3e..8491dcc8e08 100644
--- a/source/blender/nodes/intern/node_common.cc
+++ b/source/blender/nodes/intern/node_common.cc
@@ -102,7 +102,9 @@ bool nodeGroupPoll(const bNodeTree *nodetree,
return false;
}
if (nodetree->type != grouptree->type) {
- *r_disabled_hint = TIP_("Node group has different type");
+ if (r_disabled_hint) {
+ *r_disabled_hint = TIP_("Node group has different type");
+ }
return false;
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs