Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/softbody.c
| Show First 20 Lines • Show All 1,857 Lines • ▼ Show 20 Lines | else if (bpi == bs->v2) { | ||||
| bp2 = &sb->bpoint[bs->v1]; | bp2 = &sb->bpoint[bs->v1]; | ||||
| #if 0 /* UNUSED */ | #if 0 /* UNUSED */ | ||||
| ia =3*bs->v2; | ia =3*bs->v2; | ||||
| ic =3*bs->v1; | ic =3*bs->v1; | ||||
| #endif | #endif | ||||
| } | } | ||||
| else { | else { | ||||
| /* TODO make this debug option */ | /* TODO make this debug option */ | ||||
| /**/ | |||||
| CLOG_WARN(&LOG, "bodypoint <bpi> is not attached to spring <*bs>"); | CLOG_WARN(&LOG, "bodypoint <bpi> is not attached to spring <*bs>"); | ||||
| return; | return; | ||||
| } | } | ||||
| /* do bp1 <--> bp2 elastic */ | /* do bp1 <--> bp2 elastic */ | ||||
| sub_v3_v3v3(dir, bp1->pos, bp2->pos); | sub_v3_v3v3(dir, bp1->pos, bp2->pos); | ||||
| distance = normalize_v3(dir); | distance = normalize_v3(dir); | ||||
| if (bs->len < distance) | if (bs->len < distance) | ||||
| ▲ Show 20 Lines • Show All 1,613 Lines • Show Last 20 Lines | |||||