Fix T87359: set group output in geometry node tree update callback

This also fixes T85511.

Differential Revision: https://developer.blender.org/D10970
This commit is contained in:
Wannes Malfait 2021-04-16 11:37:49 +02:00 committed by Jacques Lucke
parent a2e4d81849
commit 58818cba40
Notes: blender-bot 2023-02-14 09:34:18 +01:00
Referenced by commit 26b4ef6823, Geometry Nodes: remove some unnecessary updates
Referenced by issue #87359, Geometry Nodes: Group active output python property is not set when creating a new group
Referenced by issue #85511, Geometry Nodegroup stopped updating the viewport
1 changed files with 2 additions and 0 deletions

View File

@ -67,6 +67,8 @@ static void geometry_node_tree_get_from_context(const bContext *C,
static void geometry_node_tree_update(bNodeTree *ntree)
{
ntreeSetOutput(ntree);
/* Needed to give correct types to reroutes. */
ntree_update_reroute_nodes(ntree);
}