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:
authorXiao Xiangquan <xiaoxiangquan@gmail.com>2011-07-22 18:14:28 +0400
committerXiao Xiangquan <xiaoxiangquan@gmail.com>2011-07-22 18:14:28 +0400
commit08645d92933c35b936e555ee7fec3f0dce2ad1bf (patch)
tree55eb33e24213a5317922bcfd8f3ab6cb72c6529b /source/blender/windowmanager/intern/wm_init_exit.c
parent77926a7f9d7c8f07bc4aa70c48ade0f7927836b4 (diff)
switch language in User Preference's System page. with some known switch failure bugs
Diffstat (limited to 'source/blender/windowmanager/intern/wm_init_exit.c')
-rw-r--r--source/blender/windowmanager/intern/wm_init_exit.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/source/blender/windowmanager/intern/wm_init_exit.c b/source/blender/windowmanager/intern/wm_init_exit.c
index dfa3a0f80f1..26d1b4454bd 100644
--- a/source/blender/windowmanager/intern/wm_init_exit.c
+++ b/source/blender/windowmanager/intern/wm_init_exit.c
@@ -122,6 +122,7 @@ int wm_start_with_console = 0;
/* only called once, for startup */
void WM_init(bContext *C, int argc, const char **argv)
{
+ ListBase wmbase;
if (!G.background) {
wm_ghost_init(C); /* note: it assigns C to ghost! */
wm_init_cursor_data();
@@ -131,24 +132,24 @@ void WM_init(bContext *C, int argc, const char **argv)
BLF_lang_init();
// use default settings
BLF_lang_encoding("");
- BLF_lang_set("");
+ /* get the default database, plus a wm */
+ WM_read_homefile(C, NULL, G.factory_startup, &wmbase);
+ BLF_lang_set(NULL);
RNA_types_init_gettext();
wm_operatortype_init();
-
+
set_free_windowmanager_cb(wm_close_and_free); /* library.c */
set_blender_test_break_cb(wm_window_testbreak); /* blender.c */
DAG_editors_update_cb(ED_render_id_flush_update); /* depsgraph.c */
-
+
ED_spacetypes_init(); /* editors/space_api/spacetype.c */
-
- ED_file_init(); /* for fsmenu */
- ED_init_node_butfuncs();
- /* get the default database, plus a wm */
- WM_read_homefile(C, NULL, G.factory_startup);
+ ED_file_init(); /* for fsmenu */
+ ED_init_node_butfuncs();
+ WM_read_homefile_proc(C, &wmbase);
/* note: there is a bug where python needs initializing before loading the
* startup.blend because it may contain PyDrivers. It also needs to be after
* initializing space types and other internal data.