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:
Diffstat (limited to 'source/blender/editors/transform/transform_constraints.c')
-rw-r--r--source/blender/editors/transform/transform_constraints.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/editors/transform/transform_constraints.c b/source/blender/editors/transform/transform_constraints.c
index 08bd36fe95c..18d47eb9c3d 100644
--- a/source/blender/editors/transform/transform_constraints.c
+++ b/source/blender/editors/transform/transform_constraints.c
@@ -206,7 +206,7 @@ static void axisProjection(TransInfo *t, const float axis[3], const float in[3],
/* checks for center being too close to the view center */
viewAxisCorrectCenter(t, t_con_center);
-
+
angle = fabsf(angle_v3v3(axis, t->viewinv[2]));
if (angle > (float)M_PI_2) {
angle = (float)M_PI - angle;
@@ -237,7 +237,7 @@ static void axisProjection(TransInfo *t, const float axis[3], const float in[3],
project_v3_v3v3(vec, in, plane);
sub_v3_v3v3(vec, in, vec);
-
+
add_v3_v3v3(v, vec, t_con_center);
getViewVector(t, v, norm);
@@ -255,11 +255,11 @@ static void axisProjection(TransInfo *t, const float axis[3], const float in[3],
else {
add_v3_v3v3(v2, t_con_center, axis);
add_v3_v3v3(v4, v, norm);
-
+
isect_line_line_v3(t_con_center, v2, v, v4, i1, i2);
-
+
sub_v3_v3v3(v, i2, v);
-
+
sub_v3_v3v3(out, i1, t_con_center);
/* possible some values become nan when