Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_init_exit.c
| Context not available. | |||||
| if (G.background) { | if (G.background) { | ||||
| /* Ghost is still not init elsewhere in background mode. */ | /* Ghost is still not init elsewhere in background mode. */ | ||||
| wm_ghost_init(NULL); | wm_window_init(NULL); | ||||
| } | } | ||||
| /* Needs to be first to have an ogl context bound. */ | /* Needs to be first to have an ogl context bound. */ | ||||
| Context not available. | |||||
| { | { | ||||
| if (!G.background) { | if (!G.background) { | ||||
| wm_ghost_init(C); /* note: it assigns C to ghost! */ | wm_window_init(C); /* note: it assigns C to ghost! */ | ||||
| wm_init_cursor_data(); | wm_init_cursor_data(); | ||||
| } | } | ||||
| Context not available. | |||||
| RNA_exit(); /* should be after BPY_python_end so struct python slots are cleared */ | RNA_exit(); /* should be after BPY_python_end so struct python slots are cleared */ | ||||
| wm_ghost_exit(); | wm_window_exit(); | ||||
| CTX_free(C); | CTX_free(C); | ||||
| Context not available. | |||||