diff options
author | Jens Ole Wund <bjornmose@gmx.net> | 2006-10-06 01:30:55 +0400 |
---|---|---|
committer | Jens Ole Wund <bjornmose@gmx.net> | 2006-10-06 01:30:55 +0400 |
commit | aaaae785276e287d9a30a005d14af61524845d72 (patch) | |
tree | 499af7a7a74cb280abc8f2773d787fcbcba2113a /source | |
parent | f2d27eb4cb46f816054531c1af0a7c92680fe846 (diff) |
removing self collision for curves
just did a few tests, with the 'surprising' result that balls are not curves ..
and i don't want to be swamped by bug reports tellling me
'it does not collide as i whised it would'
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/softbody.c | 1 | ||||
-rw-r--r-- | source/blender/src/buttons_object.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/softbody.c b/source/blender/blenkernel/intern/softbody.c index d2194cb66f2..4fa7a1bcd23 100644 --- a/source/blender/blenkernel/intern/softbody.c +++ b/source/blender/blenkernel/intern/softbody.c @@ -1784,7 +1784,6 @@ static void curve_surf_to_softbody(Object *ob) if(totspring) { build_bps_springlist(ob); /* link bps to springs */ - if (ob->softflag & OB_SB_SELF) {calculate_collision_balls(ob);} } } diff --git a/source/blender/src/buttons_object.c b/source/blender/src/buttons_object.c index 84da744efd7..a858bcf4ce2 100644 --- a/source/blender/src/buttons_object.c +++ b/source/blender/src/buttons_object.c @@ -2320,7 +2320,7 @@ static void object_softbodies(Object *ob) else { if(ob->softflag & OB_SB_COLLISIONSET) { /* SELF COLLISION STUFF */ - if ((ob->type==OB_MESH)||(ob->type==OB_CURVE)) { + if ((ob->type==OB_MESH) /*may be other types will come*/) { uiDefButBitS(block, TOG, OB_SB_SELF, B_SOFTBODY_CHANGE, "Self Collision", 10,170,90,20, &ob->softflag, 0, 0, 0, 0, "enable naive vertex ball self collision"); uiDefButF(block, NUM, B_SOFTBODY_CHANGE, "Ball Size:", 110,170,170,20, &sb->colball, -10.0, 10.0, 10, 0, "col. ball size ==0 average spring lenght, >0 set collision ball manual, -1.0 max, -0.1 min ,-1.1 (min+max)/2"); } |