diff options
-rw-r--r-- | source/blender/blenkernel/BKE_spline.hh | 6 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/image.cc | 13 | ||||
-rw-r--r-- | source/blender/editors/gpencil/annotate_paint.c | 3 | ||||
-rw-r--r-- | source/blender/editors/gpencil/gpencil_paint.c | 3 |
4 files changed, 13 insertions, 12 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; diff --git a/source/blender/editors/gpencil/annotate_paint.c b/source/blender/editors/gpencil/annotate_paint.c index 338f6be4c89..1a029dbb909 100644 --- a/source/blender/editors/gpencil/annotate_paint.c +++ b/source/blender/editors/gpencil/annotate_paint.c @@ -981,7 +981,8 @@ static void annotation_stroke_newfrombuffer(tGPsdata *p) } if (found_depth == false) { - /* eeh... not much we can do.. :/, ignore depth in this case, use the 3D cursor */ + /* Unfortunately there is not much we can do when the depth isn't found, + * ignore depth in this case, use the 3D cursor. */ for (i = gpd->runtime.sbuffer_used - 1; i >= 0; i--) { depth_arr[i] = 0.9999f; } diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c index 22bdc1af119..e76650e0439 100644 --- a/source/blender/editors/gpencil/gpencil_paint.c +++ b/source/blender/editors/gpencil/gpencil_paint.c @@ -1114,7 +1114,8 @@ static void gpencil_stroke_newfrombuffer(tGPsdata *p) } if (found_depth == false) { - /* eeh... not much we can do.. :/, ignore depth in this case, use the 3D cursor */ + /* Unfortunately there is not much we can do when the depth isn't found, + * ignore depth in this case, use the 3D cursor. */ for (i = gpd->runtime.sbuffer_used - 1; i >= 0; i--) { depth_arr[i] = 0.9999f; } |