mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
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
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue