Cunning hack for Blender python module in the game engine - just don't unload it...
authorKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>
Fri, 21 May 2004 09:27:42 +0000 (09:27 +0000)
committerKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>
Fri, 21 May 2004 09:27:42 +0000 (09:27 +0000)
source/blender/src/space.c

index 1d0e8f1c50de961057c808d9d8cf5bd2ac546383..896f9d8c81c269e62558333cd205b63ccce31371 100644 (file)
@@ -404,7 +404,6 @@ void start_game(void)
     
        scene_cfra_store= save_and_reset_all_scene_cfra();
        
-       BPY_end_python();
 
        /* sound init is save, only handles once */
        sound_init_audio();
@@ -417,6 +416,8 @@ void start_game(void)
        StartKetsjiShell(curarea, startscene->id.name+2, G.main, 1);
        RestoreState();
 
+       /* Restart BPY - unload the game engine modules. */
+       BPY_end_python();
        BPY_start_python();
 
        restore_all_scene_cfra(scene_cfra_store);