Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey>2020-05-11 16:29:41 +0300
committerGermano Cavalcante <germano.costa@ig.com.br>2020-05-11 16:44:19 +0300
commit27e3361eb5399dc1a700d7f05d5b7b329bc4eafd (patch)
tree7d34903a361875799198ba33d8b1cf2ad7c49e26 /source/blender/editors/space_node/node_select.c
parent86a16e7381aed89a466244ced5c7ae697977cd4b (diff)
Fix T74713: Unpredictable active texture node for Workbench
The selection operator was not being correctly marked for update. This restores the behavior seen in blender 2.79.
Diffstat (limited to 'source/blender/editors/space_node/node_select.c')
-rw-r--r--source/blender/editors/space_node/node_select.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/space_node/node_select.c b/source/blender/editors/space_node/node_select.c
index 50c32da4b5a..e96d03f70f4 100644
--- a/source/blender/editors/space_node/node_select.c
+++ b/source/blender/editors/space_node/node_select.c
@@ -51,6 +51,8 @@
#include "UI_resources.h"
#include "UI_view2d.h"
+#include "DEG_depsgraph.h"
+
#include "MEM_guardedalloc.h"
#include "node_intern.h" /* own include */
@@ -549,6 +551,7 @@ static int node_mouse_select(bContext *C,
}
ED_node_set_active_viewer_key(snode);
ED_node_sort(snode->edittree);
+ DEG_id_tag_update(&snode->edittree->id, ID_RECALC_COPY_ON_WRITE);
WM_event_add_notifier(C, NC_NODE | NA_SELECTED, NULL);
}