diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-03-29 08:33:51 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-03-29 09:11:41 +0300 |
commit | aec9e0e1b61a10e62612522bf3f86e0afd7294a3 (patch) | |
tree | 902a6abe0f76a75b39c8cdab22d923e56df3e429 /source/blender/blenkernel/intern | |
parent | d5163e06c3e3c18e07756fbb86fb3e8f637db2fd (diff) |
Cleanup: spelling, comments
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/constraint.c | 8 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/displist_tangent.c | 2 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/gpencil_geom.c | 2 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/key.c | 2 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/multires_reshape_vertcos.c | 3 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/seqeffects.c | 15 |
6 files changed, 15 insertions, 17 deletions
diff --git a/source/blender/blenkernel/intern/constraint.c b/source/blender/blenkernel/intern/constraint.c index 45e2ff10ba4..04adb642fc0 100644 --- a/source/blender/blenkernel/intern/constraint.c +++ b/source/blender/blenkernel/intern/constraint.c @@ -472,9 +472,9 @@ static void contarget_get_mesh_mat(Object *ob, const char *substring, float mat[ /* derive the rotation from the average normal: * - code taken from transform_gizmo.c, - * calc_gizmo_stats, V3D_ORIENT_NORMAL case - */ - /* we need the transpose of the inverse for a normal... */ + * calc_gizmo_stats, V3D_ORIENT_NORMAL case */ + + /* We need the transpose of the inverse for a normal. */ copy_m3_m4(imat, ob->obmat); invert_m3_m3(tmat, imat); @@ -577,7 +577,7 @@ static void constraint_target_to_mat4(Object *ob, copy_m4_m4(mat, ob->obmat); BKE_constraint_mat_convertspace(ob, NULL, mat, from, to, false); } - /* Case VERTEXGROUP */ + /* Case VERTEXGROUP */ /* Current method just takes the average location of all the points in the * VertexGroup, and uses that as the location value of the targets. Where * possible, the orientation will also be calculated, by calculating an diff --git a/source/blender/blenkernel/intern/displist_tangent.c b/source/blender/blenkernel/intern/displist_tangent.c index 4ac8d47feba..88fef1a4cfd 100644 --- a/source/blender/blenkernel/intern/displist_tangent.c +++ b/source/blender/blenkernel/intern/displist_tangent.c @@ -144,7 +144,7 @@ static int face_to_vert_index(SGLSLDisplistToTangent *dlt, v += 1; } - /* Cyclic correction. */ + /* Cyclic correction. */ u = u % dlt->dl->nr; v = v % dlt->dl->parts; diff --git a/source/blender/blenkernel/intern/gpencil_geom.c b/source/blender/blenkernel/intern/gpencil_geom.c index c4acc871752..6bdcc9cfbcb 100644 --- a/source/blender/blenkernel/intern/gpencil_geom.c +++ b/source/blender/blenkernel/intern/gpencil_geom.c @@ -430,7 +430,7 @@ bool BKE_gpencil_stroke_sample(bGPDstroke *gps, const float dist, const bool sel stroke_interpolate_deform_weights(gps, 0, 0, 0, &new_dv[0]); } - /* the rest */ + /* The rest. */ while ((next_point_index = stroke_march_next_point(gps, next_point_index, last_coord, diff --git a/source/blender/blenkernel/intern/key.c b/source/blender/blenkernel/intern/key.c index a6708413f70..e5567a43cd7 100644 --- a/source/blender/blenkernel/intern/key.c +++ b/source/blender/blenkernel/intern/key.c @@ -952,7 +952,7 @@ static void do_key(const int start, k3 = key_block_get_data(key, actkb, k[2], &freek3); k4 = key_block_get_data(key, actkb, k[3], &freek4); - /* test for more or less points (per key!) */ + /* Test for more or less points (per key!) */ if (tot != k[0]->totelem) { k1tot = 0.0; flagflo |= 1; diff --git a/source/blender/blenkernel/intern/multires_reshape_vertcos.c b/source/blender/blenkernel/intern/multires_reshape_vertcos.c index 5aff0b3caa2..1ece7344f37 100644 --- a/source/blender/blenkernel/intern/multires_reshape_vertcos.c +++ b/source/blender/blenkernel/intern/multires_reshape_vertcos.c @@ -182,8 +182,7 @@ static void multires_reshape_vertcos_foreach_vertex_every_edge( multires_reshape_vertcos_foreach_vertex(foreach_context, &ptex_coord, subdiv_vertex_index); } -/* Set displacement grids values at a reshape level to a object coordinates of the the given - * source. */ +/* Set displacement grids values at a reshape level to a object coordinates of the given source. */ bool multires_reshape_assign_final_coords_from_vertcos( const MultiresReshapeContext *reshape_context, const float (*vert_coords)[3], diff --git a/source/blender/blenkernel/intern/seqeffects.c b/source/blender/blenkernel/intern/seqeffects.c index 70f92c6d6bd..7c34b676e69 100644 --- a/source/blender/blenkernel/intern/seqeffects.c +++ b/source/blender/blenkernel/intern/seqeffects.c @@ -2499,15 +2499,14 @@ static ImBuf *do_transform_effect(const SeqRenderData *context, /*********************** Glow *************************/ static void RVBlurBitmap2_float(float *map, int width, int height, float blur, int quality) -/* MUUUCCH better than the previous blur. */ -/* We do the blurring in two passes which is a whole lot faster. */ -/* I changed the math around to implement an actual Gaussian */ -/* distribution. */ -/* */ -/* Watch out though, it tends to misbehaven with large blur values on */ -/* a small bitmap. Avoid avoid avoid. */ -/*=============================== */ { + /* Much better than the previous blur! + * We do the blurring in two passes which is a whole lot faster. + * I changed the math around to implement an actual Gaussian distribution. + * + * Watch out though, it tends to misbehave with large blur values on + * a small bitmap. Avoid avoid! */ + float *temp = NULL, *swap; float *filter = NULL; int x, y, i, fx, fy; |