static PyObject *bpy_atexit(PyObject *UNUSED(self), PyObject *UNUSED(args), PyObject *UNUSED(kw)) { /* close down enough of blender at least not to crash */ struct bContext *C= BPy_GetContext(); WM_exit_ext(C, 0); Py_RETURN_NONE; }
/** * \brief Main exit function to close Blender ordinarily. * \note Use #wm_exit_schedule_delayed() to close Blender from an operator. Might leak memory otherwise. */ void WM_exit(bContext *C) { WM_exit_ext(C, 1); printf("\nBlender quit\n"); #ifdef WIN32 /* ask user to press a key when in debug mode */ if (G.debug & G_DEBUG) { printf("Press any key to exit . . .\n\n"); wait_for_console_key(); } #endif exit(G.is_break == true); }
void WM_exit(bContext *C) { WM_exit_ext(C, 1); exit(G.is_break == TRUE); }
void WM_exit(bContext *C) { WM_exit_ext(C, 1); exit(G.afbreek==1); }