UI: Turn on overlays by default in new node editors

This was missed in the initial commit adding the node editor overlays.
This commit is contained in:
Hans Goudey 2021-10-22 16:21:16 -05:00
parent 742b7adbad
commit cf72b10075
Notes: blender-bot 2023-02-14 04:10:15 +01:00
Referenced by commit 1ecb4e6fd8, Fix T92446: node editor overlays reset automatically
1 changed files with 3 additions and 0 deletions

View File

@ -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);