Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_init_exit.c
| Show First 20 Lines • Show All 93 Lines • ▼ Show 20 Lines | |||||
| #include "WM_types.h" | #include "WM_types.h" | ||||
| #include "WM_message.h" | #include "WM_message.h" | ||||
| #include "wm_cursors.h" | #include "wm_cursors.h" | ||||
| #include "wm_event_system.h" | #include "wm_event_system.h" | ||||
| #include "wm.h" | #include "wm.h" | ||||
| #include "wm_files.h" | #include "wm_files.h" | ||||
| #include "wm_window.h" | #include "wm_window.h" | ||||
| #include "wm_platform_support.h" | |||||
| #include "ED_anim_api.h" | #include "ED_anim_api.h" | ||||
| #include "ED_armature.h" | #include "ED_armature.h" | ||||
| #include "ED_gpencil.h" | #include "ED_gpencil.h" | ||||
| #include "ED_keyframing.h" | #include "ED_keyframing.h" | ||||
| #include "ED_keyframes_edit.h" | #include "ED_keyframes_edit.h" | ||||
| #include "ED_node.h" | #include "ED_node.h" | ||||
| #include "ED_render.h" | #include "ED_render.h" | ||||
| ▲ Show 20 Lines • Show All 199 Lines • ▼ Show 20 Lines | void WM_init(bContext *C, int argc, const char **argv) | ||||
| if (!G.background) { | if (!G.background) { | ||||
| #ifdef WITH_INPUT_NDOF | #ifdef WITH_INPUT_NDOF | ||||
| /* sets 3D mouse deadzone */ | /* sets 3D mouse deadzone */ | ||||
| WM_ndof_deadzone_set(U.ndof_deadzone); | WM_ndof_deadzone_set(U.ndof_deadzone); | ||||
| #endif | #endif | ||||
| WM_init_opengl(G_MAIN); | WM_init_opengl(G_MAIN); | ||||
| if (!WM_platform_support_perform_checks()) { | |||||
| exit(-1); | |||||
| } | |||||
| UI_init(); | UI_init(); | ||||
| } | } | ||||
| ED_spacemacros_init(); | ED_spacemacros_init(); | ||||
| /* note: there is a bug where python needs initializing before loading the | /* 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 | * startup.blend because it may contain PyDrivers. It also needs to be after | ||||
| * initializing space types and other internal data. | * initializing space types and other internal data. | ||||
| ▲ Show 20 Lines • Show All 368 Lines • Show Last 20 Lines | |||||