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
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-02-14 12:58:04 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-02-14 12:58:04 +0300
commit67c8d97db36b285303abc5dce83b1bc8dc209651 (patch)
treebf1cf63fb1f9ade7205d4e6b73800b79a4f3a3b7 /source/blender/windowmanager/intern
parent07c6a57507e81fe68a7fb3ee23c951fc80f3a042 (diff)
Cleanup: spelling
Diffstat (limited to 'source/blender/windowmanager/intern')
-rw-r--r--source/blender/windowmanager/intern/wm_init_exit.c14
-rw-r--r--source/blender/windowmanager/intern/wm_keymap.c2
-rw-r--r--source/blender/windowmanager/intern/wm_playanim.c4
3 files changed, 9 insertions, 11 deletions
diff --git a/source/blender/windowmanager/intern/wm_init_exit.c b/source/blender/windowmanager/intern/wm_init_exit.c
index 918836041df..56fd51ac6fd 100644
--- a/source/blender/windowmanager/intern/wm_init_exit.c
+++ b/source/blender/windowmanager/intern/wm_init_exit.c
@@ -624,13 +624,13 @@ void WM_exit_ex(bContext *C, const bool do_python)
#ifdef WITH_PYTHON
/* option not to close python so we can use 'atexit' */
if (do_python && ((C == NULL) || CTX_py_init_get(C))) {
- /* XXX - old note */
- /* before BKE_blender_free so py's gc happens while library still exists */
- /* needed at least for a rare sigsegv that can happen in pydrivers */
-
- /* Update for blender 2.5, move after BKE_blender_free because Blender now holds references to
- * PyObject's so decref'ing them after python ends causes bad problems every time
- * the py-driver bug can be fixed if it happens again we can deal with it then. */
+ /* NOTE: (old note)
+ * before BKE_blender_free so Python's garbage-collection happens while library still exists.
+ * Needed at least for a rare crash that can happen in python-drivers.
+ *
+ * Update for Blender 2.5, move after #BKE_blender_free because Blender now holds references
+ * to #PyObject's so #Py_DECREF'ing them after Python ends causes bad problems every time
+ * the python-driver bug can be fixed if it happens again we can deal with it then. */
BPY_python_end();
}
#else
diff --git a/source/blender/windowmanager/intern/wm_keymap.c b/source/blender/windowmanager/intern/wm_keymap.c
index fcb13fff0a5..6cc9a4c9b64 100644
--- a/source/blender/windowmanager/intern/wm_keymap.c
+++ b/source/blender/windowmanager/intern/wm_keymap.c
@@ -1333,7 +1333,7 @@ static wmKeyMapItem *wm_keymap_item_find_in_keymap(wmKeyMap *keymap,
if (IDP_EqualsProperties_ex(properties, properties_default, is_strict)) {
char kmi_str[128];
WM_keymap_item_to_string(kmi, false, kmi_str, sizeof(kmi_str));
- /* Note gievn properties could come from other things than menu entry... */
+ /* NOTE: given properties could come from other things than menu entry. */
printf(
"%s: Some set values in menu entry match default op values, "
"this might not be desired!\n",
diff --git a/source/blender/windowmanager/intern/wm_playanim.c b/source/blender/windowmanager/intern/wm_playanim.c
index 1b1ebc70fd9..02a8951e60e 100644
--- a/source/blender/windowmanager/intern/wm_playanim.c
+++ b/source/blender/windowmanager/intern/wm_playanim.c
@@ -1146,7 +1146,6 @@ static char *wm_main_playanim_intern(int argc, const char **argv)
PlayState ps = {0};
- /* ps.doubleb = true;*/ /* UNUSED */
ps.go = true;
ps.direction = true;
ps.next_frame = 1;
@@ -1162,7 +1161,6 @@ static char *wm_main_playanim_intern(int argc, const char **argv)
ps.indicator = false;
ps.dropped_file[0] = 0;
ps.zoom = 1.0f;
- /* resetmap = false */
ps.draw_flip[0] = false;
ps.draw_flip[1] = false;
@@ -1423,7 +1421,7 @@ static char *wm_main_playanim_intern(int argc, const char **argv)
#endif
#ifdef USE_FRAME_CACHE_LIMIT
- /* really basic memory conservation scheme. Keep frames in a fifo queue */
+ /* Really basic memory conservation scheme. Keep frames in a FIFO queue. */
node = inmempicsbase.last;
while (node && added_images > PLAY_FRAME_CACHE_MAX) {