diff options
author | Hans Goudey <h.goudey@me.com> | 2021-10-23 00:21:16 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-10-23 00:21:16 +0300 |
commit | cf72b10075758be971f9806b97db01f98383aba2 (patch) | |
tree | 06d1eab174719c95f1d02d7fdc5ac39df1005873 /source/blender/editors/space_node | |
parent | 742b7adbad0e50e5cb321c9f0c80be3300a3e368 (diff) |
UI: Turn on overlays by default in new node editors
This was missed in the initial commit adding the node editor overlays.
Diffstat (limited to 'source/blender/editors/space_node')
-rw-r--r-- | source/blender/editors/space_node/space_node.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/space_node/space_node.c b/source/blender/editors/space_node/space_node.c index c932525ee1a..bd2559c4d4d 100644 --- a/source/blender/editors/space_node/space_node.c +++ b/source/blender/editors/space_node/space_node.c @@ -92,6 +92,9 @@ void ED_node_tree_start(SpaceNode *snode, bNodeTree *ntree, ID *id, ID *from) snode->id = id; snode->from = from; + snode->overlay.flag |= SN_OVERLAY_SHOW_OVERLAYS; + snode->overlay.flag |= SN_OVERLAY_SHOW_WIRE_COLORS; + ED_node_set_active_viewer_key(snode); WM_main_add_notifier(NC_SCENE | ND_NODES, NULL); |