Docs: minor edits to code comments
This commit is contained in:
@@ -469,6 +469,8 @@ static void wm_file_read_post(bContext *C, bool is_startup_file)
|
|||||||
BPY_python_reset(C);
|
BPY_python_reset(C);
|
||||||
addons_loaded = true;
|
addons_loaded = true;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
UNUSED_VARS(is_startup_file);
|
||||||
#endif /* WITH_PYTHON */
|
#endif /* WITH_PYTHON */
|
||||||
|
|
||||||
WM_operatortype_last_properties_clear_all();
|
WM_operatortype_last_properties_clear_all();
|
||||||
|
@@ -428,8 +428,9 @@ static void wait_for_console_key(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* called in creator.c even... tsk, split this! */
|
/**
|
||||||
/* note, doesnt run exit() call WM_exit() for that */
|
* \note doesn't run exit() call #WM_exit() for that.
|
||||||
|
*/
|
||||||
void WM_exit_ext(bContext *C, const bool do_python)
|
void WM_exit_ext(bContext *C, const bool do_python)
|
||||||
{
|
{
|
||||||
wmWindowManager *wm = C ? CTX_wm_manager(C) : NULL;
|
wmWindowManager *wm = C ? CTX_wm_manager(C) : NULL;
|
||||||
|
@@ -1785,11 +1785,11 @@ char **environ = NULL;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Blender's main function responsabilities are:
|
* Blender's main function responsibilities are:
|
||||||
* - setup subsystems.
|
* - setup subsystems.
|
||||||
* - handle arguments.
|
* - handle arguments.
|
||||||
* - run WM_main() event loop,
|
* - run #WM_main() event loop,
|
||||||
* or exit when running in background mode.
|
* or exit immediately when running in background mode.
|
||||||
*/
|
*/
|
||||||
int main(
|
int main(
|
||||||
int argc,
|
int argc,
|
||||||
@@ -2071,7 +2071,7 @@ int main(
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (G.background) {
|
if (G.background) {
|
||||||
/* actually incorrect, but works for now (ton) */
|
/* Using window-manager API in background mode is a bit odd, but works fine. */
|
||||||
WM_exit(C);
|
WM_exit(C);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Reference in New Issue
Block a user