diff options
author | Jens Ole Wund <bjornmose@gmx.net> | 2005-05-25 02:17:23 +0400 |
---|---|---|
committer | Jens Ole Wund <bjornmose@gmx.net> | 2005-05-25 02:17:23 +0400 |
commit | 524e411dbfce7702c270a590c78aba4012f66666 (patch) | |
tree | b048ac3f23e5b582935065feb1b8ac4797362a8a /source | |
parent | 9e0e4adb684c9d7b7024cebe926d9937815c48ba (diff) |
rule OB_SB_GOAL flag over SOFTGOALSNAP optimization in all cases
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/softbody.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/softbody.c b/source/blender/blenkernel/intern/softbody.c index a56c42d85f6..bfeceb8d476 100644 --- a/source/blender/blenkernel/intern/softbody.c +++ b/source/blender/blenkernel/intern/softbody.c @@ -754,7 +754,13 @@ static void set_body_point(Object *ob, BodyPoint *bp, float *vec) bp->vec[0]= bp->vec[1]= bp->vec[2]= 0.0; bp->weight= 1.0; - bp->goal= ob->soft->defgoal; + if(ob->softflag & OB_SB_GOAL) { + bp->goal= ob->soft->defgoal; + } + else { + bp->goal= 0.0f; + /* so this will definily be below SOFTGOALSNAP */ + } bp->nofsprings= 0; bp->springs= NULL; |