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
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-10-26 03:04:33 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-10-26 03:04:33 +0400
commite5a31eff37508a9c97ac55cf522c1493a8e2715a (patch)
tree9507658314ddba2bf7322a6ce1fccbae6101125b /source/blender/blenkernel/intern/implicit.c
parentb32bf2c462970912c2e8013fcf6f0ee5e3eaadd5 (diff)
code cleanup: use squared length for comparisons and is_zero_v# rather then checking length == 0.
Diffstat (limited to 'source/blender/blenkernel/intern/implicit.c')
-rw-r--r--source/blender/blenkernel/intern/implicit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/implicit.c b/source/blender/blenkernel/intern/implicit.c
index 9201ac463e3..39dcd73e0e5 100644
--- a/source/blender/blenkernel/intern/implicit.c
+++ b/source/blender/blenkernel/intern/implicit.c
@@ -1730,7 +1730,7 @@ static int UNUSED_FUNCTION(cloth_calc_helper_forces)(Object *UNUSED(ob), ClothMo
for (i=0; i<cloth->numverts; i++, cv++) {
copy_v3_v3(cos[i], cv->tx);
- if (cv->goal == 1.0f || len_v3v3(initial_cos[i], cv->tx) != 0.0) {
+ if (cv->goal == 1.0f || len_squared_v3v3(initial_cos[i], cv->tx) != 0.0) {
masses[i] = 1e+10;
}
else {