mirror of
https://github.com/blender/blender
synced 2026-09-26 16:15:47 +03:00
Fix #119271: Update stats when switched between workspaces
When workspace is switched, send notifier to clear `view_layer->stats` then update the stats with repsect to new object interaction mode. Pull Request: https://projects.blender.org/blender/blender/pulls/119418
This commit is contained in:
parent
cf1ab3ec6e
commit
847d369fbb
1 changed files with 1 additions and 0 deletions
|
|
@ -827,6 +827,7 @@ static void rna_Window_workspace_update(bContext *C, PointerRNA *ptr)
|
|||
if (new_workspace) {
|
||||
wmWindowManager *wm = CTX_wm_manager(C);
|
||||
WM_event_add_notifier_ex(wm, win, NC_SCREEN | ND_WORKSPACE_SET, new_workspace);
|
||||
WM_event_add_notifier(C, NC_SPACE | ND_SPACE_INFO, nullptr);
|
||||
win->workspace_hook->temp_workspace_store = nullptr;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue