fix for homegrown bug in softbody rigidity

springs inserted twice caused unreal stiffness in ODEs
-> bad performance killers
This commit is contained in:
2006-09-27 06:59:27 +00:00
parent a39ca26700
commit 2d11fbe192

View File

@@ -655,6 +655,11 @@ static void build_bps_springlist(Object *ob)
if (sb==NULL) return; /* paranoya check */
for(a=sb->totpoint, bp= sb->bpoint; a>0; a--, bp++) {
/* throw away old list */
if (bp->springs) {
MEM_freeN(bp->springs);
bp->springs=NULL;
}
/* scan for attached inner springs */
for(b=sb->totspring, bs= sb->bspring; b>0; b--, bs++) {
if (( (sb->totpoint-a) == bs->v1) ){