BGE fix: 3DDview not redrawing when exiting BGE
authorDalai Felinto <dfelinto@gmail.com>
Sun, 20 Dec 2009 18:47:30 +0000 (18:47 +0000)
committerDalai Felinto <dfelinto@gmail.com>
Sun, 20 Dec 2009 18:47:30 +0000 (18:47 +0000)
CTX_wm_window_set() was resetting the CTX_wm_area(C), for the redrawing wasn't working.
Changing their orders fixes it.

source/blender/editors/space_view3d/view3d_view.c

index 8fc6e365c46f6045eaaf3f21141e1cc89dc2fc3b..bbf728d31c00773b5c6d5eb594bd4124f08b70cd 100644 (file)
@@ -1753,8 +1753,8 @@ static int game_engine_exec(bContext *C, wmOperator *unused)
        /* restore context, in case it changed in the meantime, for
           example by working in another window or closing it */
        CTX_wm_region_set(C, prevar);
-       CTX_wm_area_set(C, prevsa);
        CTX_wm_window_set(C, prevwin);
+       CTX_wm_area_set(C, prevsa);
        RestoreState(C);
 
        //XXX restore_all_scene_cfra(scene_cfra_store);