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/makesrna/intern/rna_workspace.c | |
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/makesrna/intern/rna_workspace.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_workspace.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_workspace.c b/source/blender/makesrna/intern/rna_workspace.c index 4873831abce..a0d89b8b15a 100644 --- a/source/blender/makesrna/intern/rna_workspace.c +++ b/source/blender/makesrna/intern/rna_workspace.c @@ -419,6 +419,7 @@ static void rna_def_workspace(BlenderRNA *brna) "Pin Scene", "Remember the last used scene for the workspace and switch to it " "whenever this workspace is activated again"); + RNA_def_property_update(prop, NC_WORKSPACE, NULL); /* Flags */ prop = RNA_def_property(srna, "use_filter_by_owner", PROP_BOOLEAN, PROP_NONE); |