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 <ideasman42@gmail.com>2021-09-23 08:02:10 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-09-23 08:42:44 +0300
commit754d56dcc19373358d264f04b3630eeca614d0b9 (patch)
treec29f1677e1e9e9db6502db28938ee01b2f60c546 /source/blender/blenkernel/intern
parentbf948b2cef3ba340a6bba5e7bd7f4911c9a9275a (diff)
Cleanup: spelling in comments
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r--source/blender/blenkernel/intern/gpencil_geom.cc4
-rw-r--r--source/blender/blenkernel/intern/mesh_convert.cc2
2 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/gpencil_geom.cc b/source/blender/blenkernel/intern/gpencil_geom.cc
index 976b26a1f3a..debdf44b0bb 100644
--- a/source/blender/blenkernel/intern/gpencil_geom.cc
+++ b/source/blender/blenkernel/intern/gpencil_geom.cc
@@ -738,8 +738,8 @@ bool BKE_gpencil_stroke_stretch(bGPDstroke *gps,
sub_v3_v3v3(vec1, &gps->points[start_i].x, &gps->points[start_i + dir_i].x);
/* In general curvature = 1/radius. For the case without the
- * weights introduced by #segment_influence, the calculation is
- * curvature = delta angle/delta arclength = len_v3(total_angle) / overshoot_length */
+ * weights introduced by #segment_influence, the calculation is:
+ * `curvature = delta angle/delta arclength = len_v3(total_angle) / overshoot_length` */
float curvature = normalize_v3(total_angle) / overshoot_length;
/* Compensate for the weights powf(added_len, segment_influence). */
curvature /= powf(overshoot_length / fminf(overshoot_parameter, (float)j), segment_influence);
diff --git a/source/blender/blenkernel/intern/mesh_convert.cc b/source/blender/blenkernel/intern/mesh_convert.cc
index 467f7d4543e..72ccfffbc3c 100644
--- a/source/blender/blenkernel/intern/mesh_convert.cc
+++ b/source/blender/blenkernel/intern/mesh_convert.cc
@@ -237,7 +237,7 @@ static int mesh_nurbs_displist_to_mdata(const Curve *cu,
int a, b, ofs, vertcount, startvert, totvert = 0, totedge = 0, totloop = 0, totpoly = 0;
int p1, p2, p3, p4, *index;
const bool conv_polys = (
- /* 2d polys are filled with DL_INDEX3 displists */
+ /* 2D polys are filled with #DispList.type == #DL_INDEX3. */
(CU_DO_2DFILL(cu) == false) ||
/* surf polys are never filled */
BKE_curve_type_get(cu) == OB_SURF);