diff options
Diffstat (limited to 'source/creator/creator.c')
-rw-r--r-- | source/creator/creator.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c index 5ffce91ec2d..9bf09a46461 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -77,6 +77,8 @@ #include "WM_api.h" +#include "RNA_define.h" + #include "GPU_draw.h" #include "GPU_extensions.h" @@ -310,11 +312,13 @@ int main(int argc, char **argv) BLI_where_am_i(bprogname, argv[0]); + RNA_init(); + /* Hack - force inclusion of the plugin api functions, * see blenpluginapi:pluginapi.c */ pluginapi_force_ref(); - + init_nodesystem(); initglobals(); /* blender.c */ @@ -710,7 +714,7 @@ int main(int argc, char **argv) //XXX // FOR TESTING ONLY a++; - BPY_run_python_script(C, argv[a], NULL); + BPY_run_python_script(C, argv[a], NULL, NULL); // use reports? #if 0 a++; if (a < argc) { @@ -719,7 +723,7 @@ int main(int argc, char **argv) main_init_screen(); scr_init = 1; } - BPY_run_python_script(C, argv[a], NULL); + BPY_run_python_script(C, argv[a], NULL, NULL); // use reports? } else printf("\nError: you must specify a Python script after '-P '.\n"); #endif @@ -868,7 +872,7 @@ static void error_cb(char *err) static void mem_error_cb(char *errorStr) { - fprintf(stderr, "%s", errorStr); + fputs(errorStr, stderr); fflush(stderr); } |