Fix for [#24569] F11 no longer functional after image save
authorJanne Karhu <jhkarh@gmail.com>
Sat, 6 Nov 2010 22:37:29 +0000 (22:37 +0000)
committerJanne Karhu <jhkarh@gmail.com>
Sat, 6 Nov 2010 22:37:29 +0000 (22:37 +0000)
* Same fix was already in ED_area_prevspace().

source/blender/editors/render/render_internal.c

index bf017856389f0c4f57256db7e1b4ed96bc59cba8..dee46ba42a7147e1f41bff23e0639881fbcf27ba 100644 (file)
@@ -841,7 +841,12 @@ static int render_view_show_invoke(bContext *C, wmOperator *UNUSED(unused), wmEv
                                ED_screen_full_prevspace(C, sa);
                        }
                        else if(sima->next) {
-                               ED_area_newspace(C, sa, sima->next->spacetype);
+                               /* workaround for case of double prevspace, render window
+                                  with a file browser on top of it (same as in ED_area_prevspace) */
+                               if(sima->next->spacetype == SPACE_FILE && sima->next->next)
+                                       ED_area_newspace(C, sa, sima->next->next->spacetype);
+                               else
+                                       ED_area_newspace(C, sa, sima->next->spacetype);
                                ED_area_tag_redraw(sa);
                        }
                }