[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [26858] trunk/blender/source/blender/ blenkernel/intern/softbody.c: fixing cuckoo bugs
Jens Ole Wund (bjornmose)
bjornmose at gmx.net
Sat Feb 13 01:52:01 CET 2010
Revision: 26858
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=26858
Author: bjornmose
Date: 2010-02-13 01:52:01 +0100 (Sat, 13 Feb 2010)
Log Message:
-----------
fixing cuckoo bugs
- no i really don't like abusing group indexes (would like to have written indices .. but spell checker complains SIGH )
anyhow
lattices and curves do not care for ambiguous vertex group index any more
just take weights as they are set
Modified Paths:
--------------
trunk/blender/source/blender/blenkernel/intern/softbody.c
Modified: trunk/blender/source/blender/blenkernel/intern/softbody.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/softbody.c 2010-02-12 23:24:59 UTC (rev 26857)
+++ trunk/blender/source/blender/blenkernel/intern/softbody.c 2010-02-13 00:52:01 UTC (rev 26858)
@@ -3486,7 +3486,9 @@
sb= ob->soft; /* can be created in renew_softbody() */
/* weights from bpoints, same code used as for mesh vertices */
- if((ob->softflag & OB_SB_GOAL) && sb->vertgroup) {
+ /* if((ob->softflag & OB_SB_GOAL) && sb->vertgroup) { 2.4x one*/
+ /* new! take the weights from lattice vertex anyhow */
+ if(ob->softflag & OB_SB_GOAL){
BodyPoint *bp= sb->bpoint;
BPoint *bpnt= lt->def;
float goalfac= ABS(sb->maxgoal - sb->mingoal);
@@ -3538,7 +3540,9 @@
bs= sb->bspring;
/* weights from bpoints, same code used as for mesh vertices */
- if((ob->softflag & OB_SB_GOAL) && sb->vertgroup)
+ /* if((ob->softflag & OB_SB_GOAL) && sb->vertgroup) 2.4x hack*/
+ /* new! take the weights from curve vertex anyhow */
+ if(ob->softflag & OB_SB_GOAL)
setgoal= 1;
for(nu= cu->nurb.first; nu; nu= nu->next) {
More information about the Bf-blender-cvs
mailing list