From b36a05bb7e794335e3415594c41d3986cdc815e8 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 10 Jan 2010 20:01:13 +0000 Subject: - fix for crash if drivers were used in the .B.blend - fix for problem where proxy objects could enter editmode but not exit --- source/creator/creator.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'source/creator') diff --git a/source/creator/creator.c b/source/creator/creator.c index cad79395b76..87662e0b7a5 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -493,13 +493,7 @@ int main(int argc, char **argv) } } - WM_init(C); - -#ifndef DISABLE_PYTHON - BPY_set_context(C); /* necessary evil */ - BPY_start_python(argc, argv); - BPY_load_user_modules(C); -#endif + WM_init(C, argc, argv); // XXX BRECHT SOLVE BLI_where_is_temp( btempdir, 1 ); /* call after loading the .B.blend so we can read U.tempdir */ @@ -539,13 +533,8 @@ int main(int argc, char **argv) } } - WM_init(C); + WM_init(C, argc, argv); -#ifndef DISABLE_PYTHON - BPY_set_context(C); /* necessary evil */ - BPY_start_python(argc, argv); - BPY_load_user_modules(C); -#endif BLI_where_is_temp( btempdir, 0 ); /* call after loading the .B.blend so we can read U.tempdir */ } #ifndef DISABLE_PYTHON -- cgit v1.2.3