Fix for [#22960] UV/Image editor - Back to Previous button
This commit is contained in:
@@ -1500,7 +1500,17 @@ void ED_screen_full_restore(bContext *C, ScrArea *sa)
|
|||||||
|
|
||||||
if (sl->next) {
|
if (sl->next) {
|
||||||
/* specific checks for space types */
|
/* specific checks for space types */
|
||||||
|
|
||||||
|
int sima_restore = 0;
|
||||||
|
|
||||||
|
/* Special check added for non-render image window (back from fullscreen through "Back to Previous" button) */
|
||||||
if (sl->spacetype == SPACE_IMAGE) {
|
if (sl->spacetype == SPACE_IMAGE) {
|
||||||
|
SpaceImage *sima= sa->spacedata.first;
|
||||||
|
if (!(sima->flag & SI_PREVSPACE) && !(sima->flag & SI_FULLWINDOW))
|
||||||
|
sima_restore = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (sl->spacetype == SPACE_IMAGE && !sima_restore) {
|
||||||
SpaceImage *sima= sa->spacedata.first;
|
SpaceImage *sima= sa->spacedata.first;
|
||||||
if (sima->flag & SI_PREVSPACE)
|
if (sima->flag & SI_PREVSPACE)
|
||||||
sima->flag &= ~SI_PREVSPACE;
|
sima->flag &= ~SI_PREVSPACE;
|
||||||
|
Reference in New Issue
Block a user