diff options
author | Campbell Barton <campbell@blender.org> | 2022-03-14 06:25:32 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-03-14 06:25:32 +0300 |
commit | a5571fd0e8cddeb19fd7191896bc57ded44bdd7d (patch) | |
tree | db33b6c5456555f19d4a2691090235103f256257 /source/blender/blenkernel | |
parent | 6ea1455ce3cf570fa6820ec6599286935ca494a4 (diff) |
Cleanup: spelling
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/BKE_spline.hh | 6 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/image.cc | 13 |
2 files changed, 9 insertions, 10 deletions
diff --git a/source/blender/blenkernel/BKE_spline.hh b/source/blender/blenkernel/BKE_spline.hh index 817bbf60f54..87f4ad6dc61 100644 --- a/source/blender/blenkernel/BKE_spline.hh +++ b/source/blender/blenkernel/BKE_spline.hh @@ -244,7 +244,7 @@ class Spline { }; /** - * A Bézier spline is made up of a many curve segments, possibly achieving continuity of curvature + * A Bezier spline is made up of a many curve segments, possibly achieving continuity of curvature * by constraining the alignment of curve handles. Evaluation stores the positions and a map of * factors and indices in a list of floats, which is then used to interpolate any other data. */ @@ -454,7 +454,7 @@ class NURBSpline final : public Spline { 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. */ blender::Vector<float> weights; @@ -554,7 +554,7 @@ class NURBSpline final : public Spline { }; /** - * A Poly spline is like a Bézier spline with a resolution of one. The main reason to distinguish + * A Poly spline is like a Bezier spline with a resolution of one. The main reason to distinguish * the two is for reduced complexity and increased performance, since interpolating data to control * points does not change it. * diff --git a/source/blender/blenkernel/intern/image.cc b/source/blender/blenkernel/intern/image.cc index b4644b84f1e..4a1cbdba42a 100644 --- a/source/blender/blenkernel/intern/image.cc +++ b/source/blender/blenkernel/intern/image.cc @@ -1124,7 +1124,7 @@ Image *BKE_image_add_generated(Main *bmain, const bool is_data, const bool tiled) { - /* on save, type is changed to FILE in editsima.c */ + /* Saving the image changes it's #Image.source to #IMA_SRC_FILE (leave as generated here). */ Image *ima; if (tiled) { ima = image_alloc(bmain, name, IMA_SRC_TILED, IMA_TYPE_IMAGE); @@ -1161,7 +1161,7 @@ Image *BKE_image_add_generated(Main *bmain, int entry = tiled ? 1001 : 0; image_assign_ibuf(ima, ibuf, stereo3d ? view_id : index, entry); - /* image_assign_ibuf puts buffer to the cache, which increments user counter. */ + /* #image_assign_ibuf puts buffer to the cache, which increments user counter. */ IMB_freeImBuf(ibuf); if (!stereo3d) { break; @@ -1175,7 +1175,6 @@ Image *BKE_image_add_generated(Main *bmain, Image *BKE_image_add_from_imbuf(Main *bmain, ImBuf *ibuf, const char *name) { - /* on save, type is changed to FILE in editsima.c */ Image *ima; if (name == nullptr) { @@ -1715,7 +1714,7 @@ char BKE_imtype_valid_depths(const char imtype) return R_IMF_CHAN_DEPTH_16 | R_IMF_CHAN_DEPTH_32; case R_IMF_IMTYPE_MULTILAYER: return R_IMF_CHAN_DEPTH_16 | R_IMF_CHAN_DEPTH_32; - /* eeh, cineon does some strange 10bits per channel */ + /* NOTE: CINEON uses an unusual 10bits-LOG per channel. */ case R_IMF_IMTYPE_DPX: return R_IMF_CHAN_DEPTH_8 | R_IMF_CHAN_DEPTH_10 | R_IMF_CHAN_DEPTH_12 | R_IMF_CHAN_DEPTH_16; case R_IMF_IMTYPE_CINEON: @@ -1724,7 +1723,7 @@ char BKE_imtype_valid_depths(const char imtype) return R_IMF_CHAN_DEPTH_8 | R_IMF_CHAN_DEPTH_12 | R_IMF_CHAN_DEPTH_16; case R_IMF_IMTYPE_PNG: return R_IMF_CHAN_DEPTH_8 | R_IMF_CHAN_DEPTH_16; - /* most formats are 8bit only */ + /* Most formats are 8bit only. */ default: return R_IMF_CHAN_DEPTH_8; } @@ -2721,7 +2720,7 @@ void BKE_image_stamp_buf(Scene *scene, if (TEXT_SIZE_CHECK(stamp_data.scene, w, h)) { - /* Bottom right corner, with an extra space because blenfont is too strict! */ + /* Bottom right corner, with an extra space because the BLF API is too strict! */ x = width - w - 2; /* extra space for background. */ @@ -2743,7 +2742,7 @@ void BKE_image_stamp_buf(Scene *scene, if (TEXT_SIZE_CHECK(stamp_data.strip, w, h)) { - /* Top right corner, with an extra space because blenfont is too strict! */ + /* Top right corner, with an extra space because the BLF API is too strict! */ x = width - w - pad; y = height - h; |