diff options
author | Julian Eisel <julian@blender.org> | 2022-07-07 19:14:05 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2022-07-07 19:14:05 +0300 |
commit | b8605ee458e31420a4e6653c223f841c5875a21d (patch) | |
tree | d0ad4bcde49c7b53ae40d8c280bf8148f4c8096b /source/blender/editors/space_topbar | |
parent | e0cc86978c0f72f57240214ccb6bc7fe71428827 (diff) |
UI: Superimposed pin icon for workspace scene pinning in the scene switcher
Followup to the previous commit, to display a pin icon in the scene switcher.
This is a good indicator to have and such workspace-wide functionality should
be available in the topbar, close to what it belongs to (scene switching).
Downside is that it makes this already crowded region even more crowded. But
thanks to the use of superimposed icons, it's not too noisy visually.
Differential Revision: https://developer.blender.org/D11890
Reviewed by: Campbell Barton
Diffstat (limited to 'source/blender/editors/space_topbar')
-rw-r--r-- | source/blender/editors/space_topbar/space_topbar.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/space_topbar/space_topbar.c b/source/blender/editors/space_topbar/space_topbar.c index e9a9e690e60..bc68de1dfce 100644 --- a/source/blender/editors/space_topbar/space_topbar.c +++ b/source/blender/editors/space_topbar/space_topbar.c @@ -155,6 +155,9 @@ static void topbar_header_listener(const wmRegionListenerParams *params) ED_region_tag_redraw(region); } break; + case NC_WORKSPACE: + ED_region_tag_redraw(region); + break; case NC_SPACE: if (wmn->data == ND_SPACE_INFO) { ED_region_tag_redraw(region); |