Fix T46069: Crash when saving a render with non-fullscreen file editor

IMAGE_OT_save_as assumes that active area is an Image Editor and the logic that should return to image editor after saving didn't run after fullscreen was manually exited.
This commit is contained in:
Julian Eisel 2015-09-10 19:54:20 +02:00
parent 37f4660637
commit 487705d60a
Notes: blender-bot 2023-02-14 10:35:28 +01:00
Referenced by issue #46069, Crash when saving a render with non-fullscreen file editor
1 changed files with 6 additions and 1 deletions

View File

@ -1800,7 +1800,12 @@ void ED_screen_full_prevspace(bContext *C, ScrArea *sa, const bool was_prev_temp
}
}
else {
ED_screen_restore_temp_type(C, sa);
if (sa->full) {
ED_screen_restore_temp_type(C, sa);
}
else {
ED_area_prevspace(C, sa);
}
}
}