From 4b9ff3cd42be427e478743648e9951bf8c189a04 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 24 Jun 2021 15:56:58 +1000 Subject: Cleanup: comment blocks, trailing space in comments --- source/blender/blenkernel/intern/constraint.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'source/blender/blenkernel/intern/constraint.c') diff --git a/source/blender/blenkernel/intern/constraint.c b/source/blender/blenkernel/intern/constraint.c index 826c79c3764..bc5c1d9e41f 100644 --- a/source/blender/blenkernel/intern/constraint.c +++ b/source/blender/blenkernel/intern/constraint.c @@ -272,7 +272,7 @@ void BKE_constraint_mat_convertspace(Object *ob, float diff_mat[4][4]; float imat[4][4]; - /* prevent crashes in these unlikely events */ + /* Prevent crashes in these unlikely events. */ if (ob == NULL || mat == NULL) { return; } @@ -3536,34 +3536,34 @@ static void stretchto_evaluate(bConstraint *con, bConstraintOb *cob, ListBase *t damptrack_do_transform(cob->matrix, vec, TRACK_Y); break; case PLANE_X: - /* new Y aligns object target connection*/ + /* New Y aligns object target connection. */ copy_v3_v3(cob->matrix[1], vec); - /* build new Z vector */ - /* othogonal to "new Y" "old X! plane */ + /* Build new Z vector. */ + /* Orthogonal to "new Y" "old X! plane. */ cross_v3_v3v3(orth, xx, vec); normalize_v3(orth); - /* new Z*/ + /* New Z. */ copy_v3_v3(cob->matrix[2], orth); - /* we decided to keep X plane*/ + /* We decided to keep X plane. */ cross_v3_v3v3(xx, vec, orth); normalize_v3_v3(cob->matrix[0], xx); break; case PLANE_Z: - /* new Y aligns object target connection*/ + /* New Y aligns object target connection. */ copy_v3_v3(cob->matrix[1], vec); - /* build new X vector */ - /* othogonal to "new Y" "old Z! plane */ + /* Build new X vector. */ + /* Orthogonal to "new Y" "old Z! plane. */ cross_v3_v3v3(orth, zz, vec); normalize_v3(orth); - /* new X */ + /* New X. */ negate_v3_v3(cob->matrix[0], orth); - /* we decided to keep Z */ + /* We decided to keep Z. */ cross_v3_v3v3(zz, vec, orth); normalize_v3_v3(cob->matrix[2], zz); break; @@ -4678,7 +4678,7 @@ static void pivotcon_evaluate(bConstraint *con, bConstraintOb *cob, ListBase *ta } } - /* find the pivot-point to use */ + /* Find the pivot-point to use. */ if (VALID_CONS_TARGET(ct)) { /* apply offset to target location */ add_v3_v3v3(pivot, ct->matrix[3], data->offset); -- cgit v1.2.3