Fix #116671: update socket availability after node declaration update
Pull Request: https://projects.blender.org/blender/blender/pulls/116672
This commit is contained in:
committed by
Jacques Lucke
parent
59b3a4ed0c
commit
79a56dd764
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user