From 337a122e44a3f6b28b8118c9fc4f06e397885c13 Mon Sep 17 00:00:00 2001 From: Charlie Jolly Date: Wed, 24 Mar 2021 13:57:27 +0000 Subject: Fix T86722: Missing updates after geometry nodes drag and drop Add missing call to ED_node_tag_update_nodetree which solves the missing update on initial drag. Reviewed By: HooglyBoogly Differential Revision: https://developer.blender.org/D10769 --- source/blender/editors/space_node/node_add.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/blender/editors/space_node/node_add.c b/source/blender/editors/space_node/node_add.c index a646804e0fd..8369f3e9258 100644 --- a/source/blender/editors/space_node/node_add.c +++ b/source/blender/editors/space_node/node_add.c @@ -472,6 +472,8 @@ static int node_add_object_exec(bContext *C, wmOperator *op) snode_notify(C, snode); snode_dag_update(C, snode); + ED_node_tag_update_nodetree(bmain, ntree, object_node); + return OPERATOR_FINISHED; } @@ -568,6 +570,8 @@ static int node_add_texture_exec(bContext *C, wmOperator *op) snode_notify(C, snode); snode_dag_update(C, snode); + ED_node_tag_update_nodetree(bmain, ntree, texture_node); + return OPERATOR_FINISHED; } @@ -670,6 +674,8 @@ static int node_add_collection_exec(bContext *C, wmOperator *op) snode_notify(C, snode); snode_dag_update(C, snode); + ED_node_tag_update_nodetree(bmain, ntree, collection_node); + return OPERATOR_FINISHED; } -- cgit v1.2.3