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>2020-10-15 10:12:03 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-10-15 11:00:16 +0300
commit5531697f6d4a27137dd91996ee80d452b7147a02 (patch)
tree8c024bc8acac8387a22cc7bfa43ed4d1a5691321 /source/blender/windowmanager
parent1cc3abca701775e0ddb0756a262df99b8e7a0276 (diff)
Cleanup: remove duplicate context variable (__py_context)
The context was stored both in __py_context & bpy_context_module. This avoids duplicate functions to update them too.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_init_exit.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/windowmanager/intern/wm_init_exit.c b/source/blender/windowmanager/intern/wm_init_exit.c
index 5a22e990218..4ec3e1297d2 100644
--- a/source/blender/windowmanager/intern/wm_init_exit.c
+++ b/source/blender/windowmanager/intern/wm_init_exit.c
@@ -334,9 +334,7 @@ void WM_init(bContext *C, int argc, const char **argv)
* Will try fix when the crash can be repeated. - campbell. */
#ifdef WITH_PYTHON
- BPY_context_set(C); /* necessary evil */
- BPY_python_start(argc, argv);
-
+ BPY_python_start(C, argc, argv);
BPY_python_reset(C);
#else
(void)argc; /* unused */