Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/softbody.c
| Show First 20 Lines • Show All 2,959 Lines • ▼ Show 20 Lines | if (defgroup_index_spring != -1) { | ||||
| bp->springweight *= BKE_defvert_find_weight(<->dvert[a], defgroup_index_spring); | bp->springweight *= BKE_defvert_find_weight(<->dvert[a], defgroup_index_spring); | ||||
| } | } | ||||
| } | } | ||||
| /* create some helper edges to enable SB lattice to be useful at all */ | /* create some helper edges to enable SB lattice to be useful at all */ | ||||
| if (ob->softflag & OB_SB_EDGES) { | if (ob->softflag & OB_SB_EDGES) { | ||||
| makelatticesprings(lt, ob->soft->bspring, ob->softflag & OB_SB_QUADS, ob); | makelatticesprings(lt, ob->soft->bspring, ob->softflag & OB_SB_QUADS, ob); | ||||
| build_bps_springlist(ob); /* link bps to springs */ | build_bps_springlist(ob); /* link bps to springs */ | ||||
| if (ob->softflag & OB_SB_SELF) { | |||||
| calculate_collision_balls(ob); | |||||
| } | |||||
| } | } | ||||
| } | } | ||||
| /* makes totally fresh start situation */ | /* makes totally fresh start situation */ | ||||
| static void curve_surf_to_softbody(Scene *scene, Object *ob) | static void curve_surf_to_softbody(Scene *scene, Object *ob) | ||||
| { | { | ||||
| Curve *cu = ob->data; | Curve *cu = ob->data; | ||||
| SoftBody *sb; | SoftBody *sb; | ||||
| ▲ Show 20 Lines • Show All 696 Lines • Show Last 20 Lines | |||||