mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Docs: minor edits to code comments
This commit is contained in:
parent
203d2c5029
commit
2ca34e419e
3 changed files with 9 additions and 6 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue