diff options
-rw-r--r-- | source/blender/blenkernel/intern/softbody.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/softbody.c b/source/blender/blenkernel/intern/softbody.c index c015f0f5a67..b3bdca3216c 100644 --- a/source/blender/blenkernel/intern/softbody.c +++ b/source/blender/blenkernel/intern/softbody.c @@ -1269,6 +1269,8 @@ static void softbody_calc_forces(Object *ob, float forcetime) if (c < a ) continue; /* exploit force(a,b) == -force(b,a) part1/2 */ compare = (obp->colball + bp->colball); VecSubf(def, bp->pos, obp->pos); + /* booster */ + if ( (ABS(def[0]) > compare) || (ABS(def[1]) > compare) || (ABS(def[2]) > compare) ) continue; distance = Normalise(def); if (distance < compare ){ /* exclude body points attached with a spring */ |