Fix #116671: update socket availability after node declaration update

Pull Request: https://projects.blender.org/blender/blender/pulls/116672
This commit is contained in:
Iliya Katueshenock
2024-01-09 10:52:46 +01:00
committed by Jacques Lucke
parent 59b3a4ed0c
commit 79a56dd764

View File

@@ -561,9 +561,6 @@ class NodeTreeMainUpdater {
if (ntype.group_update_func) {
ntype.group_update_func(&ntree, node);
}
if (ntype.updatefunc) {
ntype.updatefunc(&ntree, node);
}
if (ntype.declare) {
/* Should have been created when the node was registered. */
BLI_assert(ntype.static_declaration != nullptr);
@@ -571,6 +568,9 @@ class NodeTreeMainUpdater {
nodes::update_node_declaration_and_sockets(ntree, *node);
}
}
if (ntype.updatefunc) {
ntype.updatefunc(&ntree, node);
}
}
}
}