[Bf-blender-cvs] [337a122e44a] master: Fix T86722: Missing updates after geometry nodes drag and drop

Charlie Jolly noreply at git.blender.org
Wed Mar 24 15:27:47 CET 2021


Commit: 337a122e44a3f6b28b8118c9fc4f06e397885c13
Author: Charlie Jolly
Date:   Wed Mar 24 13:57:27 2021 +0000
Branches: master
https://developer.blender.org/rB337a122e44a3f6b28b8118c9fc4f06e397885c13

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

===================================================================

M	source/blender/editors/space_node/node_add.c

===================================================================

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;
 }



More information about the Bf-blender-cvs mailing list