Show/hide Render View should not raise temp user preferences windows
authorSv. Lockal <lockalsash@gmail.com>
Sun, 10 Feb 2013 18:08:51 +0000 (18:08 +0000)
committerSv. Lockal <lockalsash@gmail.com>
Sun, 10 Feb 2013 18:08:51 +0000 (18:08 +0000)
source/blender/editors/render/render_view.c

index f15f7b5..c53a8f6 100644 (file)
@@ -289,7 +289,9 @@ static int render_view_show_invoke(bContext *C, wmOperator *UNUSED(op), wmEvent
                
                /* is there another window showing result? */
                for (win = CTX_wm_manager(C)->windows.first; win; win = win->next) {
-                       if (win->screen->temp || (win == winshow && winshow != wincur)) {
+                       bScreen *sc = win->screen;
+                       if ((sc->temp && ((ScrArea *)sc->areabase.first)->spacetype == SPACE_IMAGE) ||
+                                       (win == winshow && winshow != wincur)) {
                                wm_window_raise(win);
                                return OPERATOR_FINISHED;
                        }