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.
This commit is contained in:
parent
86a16e7381
commit
27e3361eb5
Notes:
blender-bot
2023-02-14 09:24:53 +01:00
Referenced by issue #76970, Cycles viewport unneccessary update calls Referenced by issue #74713, Image Texture unpredictable behavior in Workbench renderer when duplicating node
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue