Merge branch 'blender-v4.1-release'

This commit is contained in:
Sergey Sharybin
2024-02-28 11:37:09 +01:00
@@ -264,6 +264,10 @@ static void rna_NodeSocket_type_set(PointerRNA *ptr, int value)
bNodeSocket *sock = static_cast<bNodeSocket *>(ptr->data);
bNode *node;
nodeFindNode(ntree, sock, &node, nullptr);
if (node->type != NODE_CUSTOM) {
/* Can't change the socket type on built-in nodes like this. */
return;
}
nodeModifySocketTypeStatic(ntree, node, sock, value, 0);
}