Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-01-10 23:01:13 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-01-10 23:01:13 +0300
commitb36a05bb7e794335e3415594c41d3986cdc815e8 (patch)
treef6a3e9f13a6941b764d01d0c6b1e40df8198c6ea /source/creator
parent0bd98195a1d67ce741145a39147cf8272708f5a2 (diff)
- fix for crash if drivers were used in the .B.blend
- fix for problem where proxy objects could enter editmode but not exit
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/creator.c15
1 files changed, 2 insertions, 13 deletions
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