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 Commits

Author SHA1 Message Date
YimingWu c0a661d3ab Fix #98014: Preserve tool when exiting full screen area
Since some tools share same brush fields in `toolsettings`, the tool can
get overwritten when exiting fullscreen and multiple `ScrArea`s having
different brush settings (like a image editor space could have different
texture paint tool than what is selected in the 3d viewport in texture
paint mode).

This patch fixes the problem by putting the original`ScrArea` to the
last in `screen->areabase`, so when exiting fullscreen, the tool gets
preserved since it's always the last one to be set.
2024-03-25 10:45:21 +08:00