[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [26580] trunk/blender/source/blender/ blenlib/intern/math_base_inline.c: bugfix [#20943] Solidify Modifier working incorrectly
Campbell Barton
ideasman42 at gmail.com
Wed Feb 3 13:01:57 CET 2010
Revision: 26580
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=26580
Author: campbellbarton
Date: 2010-02-03 13:01:57 +0100 (Wed, 03 Feb 2010)
Log Message:
-----------
bugfix [#20943] Solidify Modifier working incorrectly
old code was merged chich use the angle degrees.
Modified Paths:
--------------
trunk/blender/source/blender/blenlib/intern/math_base_inline.c
Modified: trunk/blender/source/blender/blenlib/intern/math_base_inline.c
===================================================================
--- trunk/blender/source/blender/blenlib/intern/math_base_inline.c 2010-02-03 11:53:57 UTC (rev 26579)
+++ trunk/blender/source/blender/blenlib/intern/math_base_inline.c 2010-02-03 12:01:57 UTC (rev 26580)
@@ -104,7 +104,7 @@
* the distance gets very high, 180d would be inf, but this case isn't valid */
MINLINE float shell_angle_to_dist(const float angle)
{
- return (angle < SMALL_NUMBER) ? 1.0f : fabsf(1.0f / cosf(angle * (M_PI/180.0f)));
+ return (angle < SMALL_NUMBER) ? 1.0f : fabsf(1.0f / cosf(angle));
}
/* used for zoom values*/
More information about the Bf-blender-cvs
mailing list