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:35:30 +0300
commit4d677ec90d7abc686a143e6ec1f9737ebb6d3397 (patch)
treebafa5a4edc8a4bacac44c04224bcc261fed0e023 /source/blender/editors/space_node/node_select.c
parent8c6391a9b30c328b58b06f6a4842b2b7e1c76487 (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 793747ee266..9eabcc44d80 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);
}