BGE: Call DNA_sdna_current_init when launching blenderplayer.
Don't calling DNA_sdna_current_init was creating a crash because a global uninitialized variable was used when reading blender files.
This commit is contained in:
parent
308cc491cd
commit
5e5d3d6391
|
@ -61,6 +61,7 @@ extern "C"
|
|||
|
||||
#include "DNA_scene_types.h"
|
||||
#include "DNA_userdef_types.h"
|
||||
#include "DNA_genfile.h"
|
||||
|
||||
#include "BLO_readfile.h"
|
||||
#include "BLO_runtime.h"
|
||||
|
@ -492,6 +493,8 @@ int main(
|
|||
// freeing up GPU_Textures works correctly.
|
||||
BLI_threadapi_init();
|
||||
|
||||
DNA_sdna_current_init();
|
||||
|
||||
RNA_init();
|
||||
|
||||
init_nodesystem();
|
||||
|
|
Loading…
Reference in New Issue