diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-02-03 15:01:57 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-02-03 15:01:57 +0300 |
commit | 116a52ee21e834a471be21f7691a449afe0cb115 (patch) | |
tree | a4c8c79f3cd0597eb53250765a574f38b83d02e0 /source | |
parent | 0cb790ac8e0b19c7c9eed8faa0596a130fb1259c (diff) |
bugfix [#20943] Solidify Modifier working incorrectly
old code was merged chich use the angle degrees.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenlib/intern/math_base_inline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/math_base_inline.c b/source/blender/blenlib/intern/math_base_inline.c index e228e25c4d6..3b11ea3dbcb 100644 --- a/source/blender/blenlib/intern/math_base_inline.c +++ b/source/blender/blenlib/intern/math_base_inline.c @@ -104,7 +104,7 @@ MINLINE float interpf(float target, float origin, float fac) * 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*/ |