diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-09-04 02:32:03 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-09-04 02:32:03 +0400 |
commit | 9467d9940583d6c3a2e1b83f854453da9e64fdd7 (patch) | |
tree | b69c66e465ee618bfc4888648be557b74f26e822 /source/blender/modifiers/intern/MOD_array.c | |
parent | 4ee18eaf12e0430c267054ff04952586fa461153 (diff) |
replace sqrt(dot()) with length functions.
Diffstat (limited to 'source/blender/modifiers/intern/MOD_array.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_array.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_array.c b/source/blender/modifiers/intern/MOD_array.c index 70362227c65..7c47fd5862e 100644 --- a/source/blender/modifiers/intern/MOD_array.c +++ b/source/blender/modifiers/intern/MOD_array.c @@ -402,7 +402,7 @@ static DerivedMesh *arrayModifier_doArray(ArrayModifierData *amd, /* calculate the maximum number of copies which will fit within the * prescribed length */ if (amd->fit_type == MOD_ARR_FITLENGTH || amd->fit_type == MOD_ARR_FITCURVE) { - float dist = sqrt(dot_v3v3(offset[3], offset[3])); + float dist = len_v3(offset[3]); if (dist > 1e-6f) /* this gives length = first copy start to last copy end |