Starting a Bake for SoftBody didn't initialize the animation system for the
first frame correctly, causing an initial unwanted softbody effect.
This commit is contained in:
2005-07-11 09:27:35 +00:00
parent 0fa1e2dcc7
commit 0c197b211b

View File

@@ -1079,9 +1079,10 @@ static void softbody_bake(Object *ob)
unsigned short event=0;
short val;
G.scene->r.framelen= 1.0; // baking has to be in uncorrected time
G.scene->r.framelen= 1.0; // baking has to be in uncorrected time
CFRA= sb->sfra;
sbObjectToSoftbody(ob);
update_for_newframe_muted(); // put everything on this frame
sbObjectToSoftbody(ob); // put softbody in restposition
ob->softflag |= OB_SB_BAKEDO;
curarea->win_swap= 0; // clean swapbuffers