Fix #98014: Preserve tool when exiting full screen area #119856

Open
YimingWu wants to merge 1 commits from ChengduLittleA/blender:fix-98014 into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 7 additions and 0 deletions

View File

@ -1466,6 +1466,13 @@ static bScreen *screen_state_to_nonnormal(bContext *C,
bScreen *oldscreen = WM_window_get_active_screen(win);
/* Put the old area to the last in the list to preserve tool when exiting
* fullscreen. See #WM_toolsystem_ref_set_from_runtime and
* https://projects.blender.org/blender/blender/issues/98014#issuecomment-1153043 for
* detailed explaination. */
BLI_remlink(&oldscreen->areabase, toggle_area);
BLI_addtail(&oldscreen->areabase, toggle_area);
oldscreen->state = state;
SNPRINTF(newname, "%s-%s", oldscreen->id.name + 2, "nonnormal");