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:
authorCampbell Barton <ideasman42@gmail.com>2012-09-18 05:24:32 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-09-18 05:24:32 +0400
commit47677909c76bbf01aa497c192bdad5fcbc94cea8 (patch)
treeb4f0de7d80c5f7223acdc283326f0489c0fd444d /source
parentdbdcfe488b6635193f775bc4016234ea7abc0ac3 (diff)
fix own error in r49994
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/mball.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/mball.c b/source/blender/blenkernel/intern/mball.c
index 4679d8547f0..2030ab0f552 100644
--- a/source/blender/blenkernel/intern/mball.c
+++ b/source/blender/blenkernel/intern/mball.c
@@ -691,7 +691,7 @@ static float densfunc(MetaElem *ball, float x, float y, float z)
/* *** end deprecated *** */
}
- dist2 = 1.0f - (len_v3(dvec) / ball->rad2);
+ dist2 = 1.0f - (len_squared_v3(dvec) / ball->rad2);
if ((ball->flag & MB_NEGATIVE) == 0) {
return (dist2 < 0.0f) ? -0.5f : (ball->s * dist2 * dist2 * dist2) - 0.5f;