[Bf-blender-cvs] [c546256563] surface-deform-modifier: Change angle function call in 3d to 2d mapping function
Luca Rood
noreply at git.blender.org
Sat Jan 14 04:53:06 CET 2017
Commit: c546256563b8bf2c3b370af39cbdab3f8a8316f6
Author: Luca Rood
Date: Sat Jan 14 00:19:06 2017 -0200
Branches: surface-deform-modifier
https://developer.blender.org/rBc546256563b8bf2c3b370af39cbdab3f8a8316f6
Change angle function call in 3d to 2d mapping function
===================================================================
M source/blender/blenlib/intern/math_geom.c
===================================================================
diff --git a/source/blender/blenlib/intern/math_geom.c b/source/blender/blenlib/intern/math_geom.c
index 24bda87384..8dffce52a5 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)
More information about the Bf-blender-cvs
mailing list