Cleanup: spelling in comments

This commit is contained in:
Campbell Barton
2023-07-22 11:46:41 +10:00
parent 302887c619
commit 3a3de9b674
8 changed files with 10 additions and 10 deletions

View File

@@ -1907,8 +1907,8 @@ void BKE_armature_mat_pose_to_bone_ex(Depsgraph *depsgraph,
{
bPoseChannel work_pchan = blender::dna::shallow_copy(*pchan);
/* recalculate pose matrix with only parent transformations,
* bone loc/sca/rot is ignored, scene and frame are not used. */
/* Recalculate pose matrix with only parent transformations,
* bone location/scale/rotation is ignored, scene and frame are not used. */
BKE_pose_where_is_bone(depsgraph, nullptr, ob, &work_pchan, 0.0f, false);
/* Find the matrix, need to remove the bone transforms first so this is calculated

View File

@@ -1370,7 +1370,7 @@ void sort_time_fcurve(FCurve *fcu)
/* Loop over ALL points to adjust position in array and recalculate handles. */
for (a = 0, bezt = fcu->bezt; a < fcu->totvert; a++, bezt++) {
/* Check if thee's a next beztriple which we could try to swap with current. */
/* Check if there's a next beztriple which we could try to swap with current. */
if (a < (fcu->totvert - 1)) {
/* Swap if one is after the other (and indicate that order has changed). */
if (bezt->vec[1][0] > (bezt + 1)->vec[1][0]) {

View File

@@ -251,11 +251,11 @@ static int append_avi(void *context_v,
return 0;
}
/* note that libavi free's the buffer... stupid interface - zr */
/* NOTE(@zr): that LIBAVI free's the buffer (stupid interface). */
rectot = static_cast<uint *>(MEM_mallocN(rectx * recty * sizeof(int), "rectot"));
rt1 = rectot;
rt2 = (uint *)pixels + (recty - 1) * rectx;
/* flip y and convert to abgr */
/* Flip Y and convert to ABGR. */
for (y = 0; y < recty; y++, rt1 += rectx, rt2 -= rectx) {
memcpy(rt1, rt2, rectx * sizeof(int));

View File

@@ -486,7 +486,7 @@ struct AssetLibraryIndex {
/**
* \brief Absolute path where the indices of `library` are stored.
*
* \NOTE: includes trailing directory separator.
* \note includes trailing directory separator.
*/
std::string indices_base_path;

View File

@@ -1229,7 +1229,7 @@ bool RE_engine_draw_acquire(Render *re)
RenderEngine *engine = re->engine;
if (!engine) {
/* \No engine-side drawing if the engine does not exist. */
/* No engine-side drawing if the engine does not exist. */
return false;
}

View File

@@ -27,7 +27,7 @@
#include "render.h"
/* -------------------------------------------------------------------- */
/** \Iterator API
/** \name Iterator API
* \{ */
bool SEQ_iterator_ensure(SeqCollection *collection, SeqIterator *iterator, Sequence **r_seq)

View File

@@ -751,7 +751,7 @@ static void wm_file_read_post(bContext *C, const wmFileReadPost_Params *params)
}
if (use_data) {
/* important to do before nullptr'ing the context */
/* Important to do before nulling the context. */
BKE_callback_exec_null(bmain, BKE_CB_EVT_VERSION_UPDATE);
if (is_factory_startup) {
BKE_callback_exec_null(bmain, BKE_CB_EVT_LOAD_FACTORY_STARTUP_POST);

View File

@@ -162,7 +162,7 @@ void wm_xr_runtime_data_free(wmXrRuntimeData **runtime)
/* We free all runtime XR data here, so if the context is still alive, destroy it. */
if ((*runtime)->context != nullptr) {
GHOST_XrContextHandle context = (*runtime)->context;
/* Prevent recursive GHOST_XrContextDestroy() call by nullptr'ing the context pointer before
/* Prevent recursive #GHOST_XrContextDestroy() call by nulling the context pointer before
* the first call, see comment above. */
(*runtime)->context = nullptr;