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);
|
||||
addons_loaded = true;
|
||||
}
|
||||
#else
|
||||
UNUSED_VARS(is_startup_file);
|
||||
#endif /* WITH_PYTHON */
|
||||
|
||||
WM_operatortype_last_properties_clear_all();
|
||||
|
@@ -428,8 +428,9 @@ static void wait_for_console_key(void)
|
||||
}
|
||||
#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)
|
||||
{
|
||||
wmWindowManager *wm = C ? CTX_wm_manager(C) : NULL;
|
||||
|
@@ -1785,11 +1785,11 @@ char **environ = NULL;
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Blender's main function responsabilities are:
|
||||
* Blender's main function responsibilities are:
|
||||
* - setup subsystems.
|
||||
* - handle arguments.
|
||||
* - run WM_main() event loop,
|
||||
* or exit when running in background mode.
|
||||
* - run #WM_main() event loop,
|
||||
* or exit immediately when running in background mode.
|
||||
*/
|
||||
int main(
|
||||
int argc,
|
||||
@@ -2071,7 +2071,7 @@ int main(
|
||||
#endif
|
||||
|
||||
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);
|
||||
}
|
||||
else {
|
||||
|
Reference in New Issue
Block a user