Bugfix for #2768
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:
@@ -1079,9 +1079,10 @@ static void softbody_bake(Object *ob)
|
|||||||
unsigned short event=0;
|
unsigned short event=0;
|
||||||
short val;
|
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;
|
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;
|
ob->softflag |= OB_SB_BAKEDO;
|
||||||
|
|
||||||
curarea->win_swap= 0; // clean swapbuffers
|
curarea->win_swap= 0; // clean swapbuffers
|
||||||
|
|||||||
Reference in New Issue
Block a user