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 <campbell@blender.org>2022-03-17 02:04:45 +0300
committerCampbell Barton <campbell@blender.org>2022-03-17 02:08:41 +0300
commitea0c86e961de20d4215824d5cfd239a1f4c4cc90 (patch)
treee71ac0d90968892d53d94f15191a1bbb93f24665 /source/blender/blenkernel
parent27388f7f46db6ce87d89bf1aa3350c899d56f42b (diff)
Cleanup: spelling in comments
Use <pre>..</pre> for pseudo-code.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/BKE_curves.hh6
-rw-r--r--source/blender/blenkernel/intern/collection.c2
-rw-r--r--source/blender/blenkernel/intern/image.cc2
-rw-r--r--source/blender/blenkernel/intern/text.c2
4 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/blenkernel/BKE_curves.hh b/source/blender/blenkernel/BKE_curves.hh
index 1354fc9ed25..c28886e8a52 100644
--- a/source/blender/blenkernel/BKE_curves.hh
+++ b/source/blender/blenkernel/BKE_curves.hh
@@ -40,7 +40,7 @@ namespace curves::nurbs {
struct BasisCache {
/**
- * For each evaluated point, the weight for alls control points that influences it.
+ * For each evaluated point, the weight for all control points that influences it.
* The vector's size is the evaluated point count multiplied by the spline's order.
*/
Vector<float> weights;
@@ -343,7 +343,7 @@ void evaluate_segment(const float3 &point_0,
* Calculate all evaluated points for the Bezier curve.
*
* \param evaluated_offsets: The index in the evaluated points array for each control point,
- * including the points from the corresponding segment. Used to varry the number of evaluated
+ * including the points from the corresponding segment. Used to vary the number of evaluated
* points per segment, i.e. to make vector segment only have one edge. This is expected to be
* calculated by #calculate_evaluated_offsets, and is the reason why this function doesn't need
* arguments like "cyclic" and "resolution".
@@ -428,7 +428,7 @@ void calculate_basis_cache(int size,
*
* \param control_weights: An optional span of control point weights, which must have the same size
* as the number of control points in the curve if provided. Using this argument gives a NURBS
- * curve the "Rational" behavior that's part of its acryonym; otherwise it is a NUBS.
+ * curve the "Rational" behavior that's part of its acronym; otherwise it is a NUBS.
*/
void interpolate_to_evaluated(const BasisCache &basis_cache,
int8_t order,
diff --git a/source/blender/blenkernel/intern/collection.c b/source/blender/blenkernel/intern/collection.c
index af776e9dbb0..891145b47c9 100644
--- a/source/blender/blenkernel/intern/collection.c
+++ b/source/blender/blenkernel/intern/collection.c
@@ -129,7 +129,7 @@ static void collection_free_data(ID *id)
{
Collection *collection = (Collection *)id;
- /* No animdata here. */
+ /* No animation-data here. */
BKE_previewimg_free(&collection->preview);
BLI_freelistN(&collection->gobject);
diff --git a/source/blender/blenkernel/intern/image.cc b/source/blender/blenkernel/intern/image.cc
index 88888831e1c..d78d508336b 100644
--- a/source/blender/blenkernel/intern/image.cc
+++ b/source/blender/blenkernel/intern/image.cc
@@ -5268,7 +5268,7 @@ static int image_get_multiview_index(Image *ima, ImageUser *iuser)
}
if (is_backdrop) {
if (BKE_image_is_stereo(ima)) {
- /* backdrop hackaround (since there is no iuser */
+ /* Backdrop hack / workaround (since there is no `iuser`). */
return ima->eye;
}
}
diff --git a/source/blender/blenkernel/intern/text.c b/source/blender/blenkernel/intern/text.c
index 991fd9e3aff..43b2db0d62c 100644
--- a/source/blender/blenkernel/intern/text.c
+++ b/source/blender/blenkernel/intern/text.c
@@ -143,7 +143,7 @@ static void text_copy_data(Main *UNUSED(bmain),
/** Free (or release) any data used by this text (does not free the text itself). */
static void text_free_data(ID *id)
{
- /* No animdata here. */
+ /* No animation-data here. */
Text *text = (Text *)id;
BKE_text_free_lines(text);