Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2016-01-24 06:25:01 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-01-24 06:29:14 +0300
commit2ca34e419e9ed82f2065433d41b7544f17b18ce2 (patch)
treecbd345523cb8c939347e6579d6c1783b9aae73bc /source
parent203d2c5029dcc654ad4ffee998cee68aa5cb69f1 (diff)
Docs: minor edits to code comments
Diffstat (limited to 'source')
-rw-r--r--source/blender/windowmanager/intern/wm_files.c2
-rw-r--r--source/blender/windowmanager/intern/wm_init_exit.c5
-rw-r--r--source/creator/creator.c8
3 files changed, 9 insertions, 6 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index 01699b2360b..845e190c82d 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -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();
diff --git a/source/blender/windowmanager/intern/wm_init_exit.c b/source/blender/windowmanager/intern/wm_init_exit.c
index 966f0fa66a1..b6b4f42e1b7 100644
--- a/source/blender/windowmanager/intern/wm_init_exit.c
+++ b/source/blender/windowmanager/intern/wm_init_exit.c
@@ -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;
diff --git a/source/creator/creator.c b/source/creator/creator.c
index 797db2dfda1..01aff855713 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -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 {