Fix T58022: Changing workspace may change layout of User Pref window
Logic to update child windows on workspace changes should simply ignore temporary child windows. Users opened those for a specific purpose (i.e. edit user preferences or show render result). Blender should not come in and repurpose it.
This commit is contained in:
+1
-1
Submodule release/scripts/addons updated: ad39a4b896...6f0128c332
Submodule release/scripts/addons_contrib updated: ee92205e96...5c4210d5b7
@@ -2230,6 +2230,11 @@ void WM_window_set_active_workspace(bContext *C, wmWindow *win, WorkSpace *works
|
||||
|
||||
for (wmWindow *win_child = wm->windows.first; win_child; win_child = win_child->next) {
|
||||
if (win_child->parent == win_parent) {
|
||||
bScreen *screen = WM_window_get_active_screen(win_child);
|
||||
/* Don't change temporary screens, they only serve a single purpose. */
|
||||
if (screen->temp) {
|
||||
continue;
|
||||
}
|
||||
ED_workspace_change(workspace, C, wm, win_child);
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
Submodule source/tools updated: 5162393c10...30d4611eac
Reference in New Issue
Block a user