Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_init_exit.c
| Show First 20 Lines • Show All 304 Lines • ▼ Show 20 Lines | void WM_init(bContext *C, int argc, const char **argv) | ||||
| BLI_assert(G_MAIN->filepath[0] == '\0'); | BLI_assert(G_MAIN->filepath[0] == '\0'); | ||||
| /* Call again to set from preferences. */ | /* Call again to set from preferences. */ | ||||
| BLT_lang_set(NULL); | BLT_lang_set(NULL); | ||||
| /* For file-system. Called here so can include user preference paths if needed. */ | /* For file-system. Called here so can include user preference paths if needed. */ | ||||
| ED_file_init(); | ED_file_init(); | ||||
| /* That one is generated on demand, we need to be sure it's clear on init. */ | |||||
| IMB_thumb_clear_translations(); | |||||
| if (!G.background) { | if (!G.background) { | ||||
| GPU_render_begin(); | GPU_render_begin(); | ||||
| #ifdef WITH_INPUT_NDOF | #ifdef WITH_INPUT_NDOF | ||||
| /* Sets 3D mouse dead-zone. */ | /* Sets 3D mouse dead-zone. */ | ||||
| WM_ndof_deadzone_set(U.ndof_deadzone); | WM_ndof_deadzone_set(U.ndof_deadzone); | ||||
| #endif | #endif | ||||
| WM_init_opengl(); | WM_init_opengl(); | ||||
| ▲ Show 20 Lines • Show All 346 Lines • Show Last 20 Lines | |||||