[Bf-blender-cvs] [c4cfa1b23ee] blender-v3.4-release: Fix T102611: Unable to change file output node sockets from python

Hans Goudey noreply at git.blender.org
Thu Nov 24 22:11:21 CET 2022


Commit: c4cfa1b23ee661a941e46c52e9fb8df1e43e74d4
Author: Hans Goudey
Date:   Fri Nov 18 14:01:40 2022 -0600
Branches: blender-v3.4-release
https://developer.blender.org/rBc4cfa1b23ee661a941e46c52e9fb8df1e43e74d4

Fix T102611: Unable to change file output node sockets from python

Similar to 84c66fe9db932b82ebf

===================================================================

M	source/blender/makesrna/intern/rna_nodetree.c

===================================================================

diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c
index c32e5b7d4db..c8c76061f37 100644
--- a/source/blender/makesrna/intern/rna_nodetree.c
+++ b/source/blender/makesrna/intern/rna_nodetree.c
@@ -2419,7 +2419,7 @@ static void rna_Node_name_set(PointerRNA *ptr, const char *value)
 
 static bool allow_changing_sockets(bNode *node)
 {
-  return ELEM(node->type, NODE_CUSTOM, SH_NODE_SCRIPT);
+  return ELEM(node->type, NODE_CUSTOM, SH_NODE_SCRIPT, CMP_NODE_OUTPUT_FILE);
 }
 
 static bNodeSocket *rna_Node_inputs_new(ID *id,



More information about the Bf-blender-cvs mailing list