Cleanup: spelling

This commit is contained in:
2020-03-07 00:05:27 +11:00
parent 8bb0ac27dc
commit 0b16b63d87
4 changed files with 14 additions and 14 deletions

View File

@@ -696,8 +696,8 @@ bool GHOST_SystemX11::processEvents(bool waitForEvent)
continue;
}
#endif
/* when using autorepeat, some keypress events can actually come *after* the
* last keyrelease. The next code takes care of that */
/* When using auto-repeat, some key-press events can actually come *after* the
* last key-release. The next code takes care of that. */
if (xevent.type == KeyRelease) {
m_last_release_keycode = xevent.xkey.keycode;
m_last_release_time = xevent.xkey.time;

View File

@@ -2226,7 +2226,7 @@ static const CDT_input *modify_input_for_near_edge_ends(const CDT_input *input,
}
/* Allocate new CDT_input, now we know sizes needed (perhaps overestimated a bit).
* Caller will be reponsible for freeing it and its arrays.
* Caller will be responsible for freeing it and its arrays.
*/
new_input = MEM_callocN(sizeof(CDT_input), __func__);
new_input->epsilon = input->epsilon;

View File

@@ -3653,7 +3653,7 @@ static void lib_link_constraint_cb(bConstraint *UNUSED(con),
{
tConstraintLinkData *cld = (tConstraintLinkData *)userdata;
/* for reference types, we need to increment the usercounts on load... */
/* for reference types, we need to increment the user-counts on load... */
if (is_reference) {
/* reference type - with usercount */
*idpoin = newlibadr(cld->fd, cld->id->lib, *idpoin);
@@ -7751,7 +7751,7 @@ static int lib_link_main_data_restore_cb(LibraryIDLinkCallbackData *cb_data)
/* Note: Handling of usercount here is really bad, defining its own system...
* Will have to be refactored at some point, but that is not top priority task for now.
* And all usercounts are properly recomputed at the end of the undo management code anyway. */
* And all user-counts are properly recomputed at the end of the undo management code anyway. */
*id_pointer = restore_pointer_by_name(
id_map, *id_pointer, (cb_flag & IDWALK_CB_USER_ONE) ? USER_REAL : USER_IGNORE);
@@ -9757,13 +9757,13 @@ BlendFileData *blo_read_file_internal(FileData *fd, const char *filepath)
/* Skip in undo case. */
if (fd->memfile == NULL) {
/* Note that we cannot recompute usercounts at this point in undo case, we play too much with
/* Note that we can't recompute user-counts at this point in undo case, we play too much with
* IDs from different memory realms, and Main database is not in a fully valid state yet.
*/
/* Some versioning code does expect some proper userrefcounting, e.g. in conversion from
* groups to collections... We could optimize out that first call when we are reading a
* current version file, but again this is really not a bottle neck currently. so not worth
* it. */
/* Some versioning code does expect some proper user-reference-counting, e.g. in conversion
* from groups to collections... We could optimize out that first call when we are reading a
* current version file, but again this is really not a bottle neck currently.
* So not worth it. */
BKE_main_id_refcount_recompute(bfd->main, false);
/* Yep, second splitting... but this is a very cheap operation, so no big deal. */
@@ -9774,9 +9774,9 @@ BlendFileData *blo_read_file_internal(FileData *fd, const char *filepath)
}
blo_join_main(&mainlist);
/* And we have to compute those userrefcounts again, as `do_versions_after_linking()` does
* not always properly handle user counts, and/or that function does not take into account
* old, deprecated data. */
/* And we have to compute those user-reference-counts again, as `do_versions_after_linking()`
* does not always properly handle user counts, and/or that function does not take into
* account old, deprecated data. */
BKE_main_id_refcount_recompute(bfd->main, false);
/* After all data has been read and versioned, uses LIB_TAG_NEW. */

View File

@@ -93,7 +93,7 @@ static int foreach_libblock_id_user_map_callback(LibraryIDLinkCallbackData *cb_d
}
if (cb_flag & IDWALK_CB_LOOPBACK) {
/* We skip loopback pointers like Object.proxy_from or Key.from here,
/* We skip loop-back pointers like Object.proxy_from or Key.from here,
* since it's some internal pointer which is not relevant info for py/API level. */
return IDWALK_RET_NOP;
}