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

Similar to 84c66fe9db
This commit is contained in:
Hans Goudey 2022-11-18 14:01:40 -06:00
parent ab819517fc
commit c0f33814c1
Notes: blender-bot 2024-02-29 09:43:41 +01:00
Referenced by issue #102611, No longer able to remove file output input sockets from python.
Referenced by pull request #118807, WIP: Fix #103824: CompositorNodeOutputFile inputs.new() crash
1 changed files with 1 additions and 1 deletions

View File

@ -2431,7 +2431,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,