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
path: root/source
diff options
context:
space:
mode:
authorLuca Rood <dev@lucarood.com>2017-01-14 05:19:06 +0300
committerLuca Rood <dev@lucarood.com>2017-01-14 06:51:55 +0300
commitc546256563b8bf2c3b370af39cbdab3f8a8316f6 (patch)
treec40b7df8b1ac00a2479d9a3b7133991c1080828d /source
parent5c263a90502f1f40877700a10606361ff136723d (diff)
Change angle function call in 3d to 2d mapping function
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenlib/intern/math_geom.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/blenlib/intern/math_geom.c b/source/blender/blenlib/intern/math_geom.c
index 24bda87384c..8dffce52a5d 100644
--- a/source/blender/blenlib/intern/math_geom.c
+++ b/source/blender/blenlib/intern/math_geom.c
@@ -4047,14 +4047,11 @@ void map_to_plane_v2_v3v3(float r_co[2], const float co[3], const float no[3])
{
float target[3] = {0.0f, 0.0f, 1.0f};
float axis[3];
- float angle;
cross_v3_v3v3(axis, no, target);
normalize_v3(axis);
- angle = saacos(dot_v3v3(no, target));
-
- map_to_plane_axis_angle_v2_v3v3fl(r_co, co, axis, angle);
+ map_to_plane_axis_angle_v2_v3v3fl(r_co, co, axis, angle_normalized_v3v3(no, target));
}
void map_to_plane_axis_angle_v2_v3v3fl(float r_co[2], const float co[3], const float axis[3], const float angle)