[Bf-committers] Softbody volume/pressure patch

LECOCQ Guillaume lecocqguillaume at gmail.com
Sat Nov 5 14:26:40 CET 2005

I make the windows compilation with the patch, I have a problem to
compile in softbody.c, the line is:
pdDoEffector(bp->pos, force, speed, (float)G.scene->r.cfra,

This function want 7 parameters, you only put 6 (I said 7 because this
function is used one more time in the file)

I will test with, the modification.

Regards, lguillaume.
2005/11/5, Nicholas Guttenberg <nichg at guava.physics.uiuc.edu>:
> There's a missing line in the patch I submitted for volume preservation in softbodies. It causes any mesh with volume stiffness > 0 to collapse in. The reason is, it isn't setting the equilibrium volume when softbodies are reset. The solution is:
> In blender/source/blender/blenkernel/intern/softbody.c (line 1427 on mine)
> There is a line:
>   ob->softflag &= ~OB_SB_RESET;
> Before that, this line should be inserted:
>   sb->eqvolume=softbody_get_volume(ob);
> It doesn't seem that my patch is on the cvs yet, but it seems it's in one of the windows builds?
> Nicholas Guttenberg
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at projects.blender.org
> http://projects.blender.org/mailman/listinfo/bf-committers

More information about the Bf-committers mailing list