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:
committed by
Harley Acheson
parent
cf1ab3ec6e
commit
847d369fbb
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user