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>2014-03-29 15:23:27 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-03-29 15:24:12 +0400
commitfb0959f88dc57a73eacd36600607cd10584da387 (patch)
tree0e2a500050613bcd53005b81956e4b12c10f424e /source/blender/editors/transform/transform_orientations.c
parent6bba006bf2bb7ef4b8758a215def13885fc2f9f7 (diff)
Code cleanup: replace dot with len_squared and is_zero checks
Diffstat (limited to 'source/blender/editors/transform/transform_orientations.c')
-rw-r--r--source/blender/editors/transform/transform_orientations.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_orientations.c b/source/blender/editors/transform/transform_orientations.c
index 0279ee0cd3d..5d415d73be1 100644
--- a/source/blender/editors/transform/transform_orientations.c
+++ b/source/blender/editors/transform/transform_orientations.c
@@ -244,7 +244,7 @@ bool createSpaceNormal(float mat[3][3], const float normal[3])
}
cross_v3_v3v3(mat[0], mat[2], tangent);
- if (dot_v3v3(mat[0], mat[0]) == 0.0f) {
+ if (is_zero_v3(mat[0])) {
tangent[0] = 1.0f;
tangent[1] = tangent[2] = 0.0f;
cross_v3_v3v3(mat[0], tangent, mat[2]);