svn merge -r40279:40295 ^/trunk/blender
[blender-staging.git] / source / blender / blenkernel / intern / effect.c
index c4a984773809ccc622045f2927e52d727e6d81cc..500d4ae13f7f6278be0778769b193e72b3edea0d 100644 (file)
@@ -571,7 +571,7 @@ float effector_falloff(EffectorCache *eff, EffectorData *efd, EffectedPoint *UNU
                        if(falloff == 0.0f)
                                break;
 
-                       r_fac=saacos(fac/len_v3(efd->vec_to_point))*180.0f/(float)M_PI;
+                       r_fac= RAD2DEGF(saacos(fac/len_v3(efd->vec_to_point)));
                        falloff*= falloff_func_rad(eff->pd, r_fac);
 
                        break;