[Bf-blender-cvs] [1663530408f] blender-v3.3-release: Fix T100318: handle custom nodes in field inferencing more gracefully
Jacques Lucke
noreply at git.blender.org
Tue Aug 23 12:40:34 CEST 2022
Commit: 1663530408fd0a9f3870289c225acedf24e014d9
Author: Jacques Lucke
Date: Tue Aug 23 12:40:26 2022 +0200
Branches: blender-v3.3-release
https://developer.blender.org/rB1663530408fd0a9f3870289c225acedf24e014d9
Fix T100318: handle custom nodes in field inferencing more gracefully
Custom nodes are not supported, but it shouldn't crash here.
===================================================================
M source/blender/blenkernel/intern/node_tree_update.cc
===================================================================
diff --git a/source/blender/blenkernel/intern/node_tree_update.cc b/source/blender/blenkernel/intern/node_tree_update.cc
index 5eb962337fa..58084226b00 100644
--- a/source/blender/blenkernel/intern/node_tree_update.cc
+++ b/source/blender/blenkernel/intern/node_tree_update.cc
@@ -94,6 +94,9 @@ static InputSocketFieldType get_interface_input_field_type(const NodeRef &node,
if (node.is_undefined()) {
return InputSocketFieldType::None;
}
+ if (node.bnode()->type == NODE_CUSTOM) {
+ return InputSocketFieldType::None;
+ }
const NodeDeclaration *node_decl = node.declaration();
@@ -131,6 +134,9 @@ static OutputFieldDependency get_interface_output_field_dependency(const NodeRef
if (node.is_undefined()) {
return OutputFieldDependency::ForDataSource();
}
+ if (node.bnode()->type == NODE_CUSTOM) {
+ return OutputFieldDependency::ForDataSource();
+ }
const NodeDeclaration *node_decl = node.declaration();
More information about the Bf-blender-cvs
mailing list