Cunning hack for Blender python module in the game engine - just don't unload it before running the game!

This commit is contained in:
2004-05-21 09:27:42 +00:00
parent e957b12f0e
commit a7456b37f1

View 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);