Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Ole Wund <bjornmose@gmx.net>2005-05-25 02:17:23 +0400
committerJens Ole Wund <bjornmose@gmx.net>2005-05-25 02:17:23 +0400
commit524e411dbfce7702c270a590c78aba4012f66666 (patch)
treeb048ac3f23e5b582935065feb1b8ac4797362a8a
parent9e0e4adb684c9d7b7024cebe926d9937815c48ba (diff)
rule OB_SB_GOAL flag over SOFTGOALSNAP optimization in all cases
-rw-r--r--source/blender/blenkernel/intern/softbody.c8
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;