big softbody commit
some vertex group , weight painting stuff too /me crosses fingers it does not break anything
This commit is contained in:
@@ -1526,6 +1526,15 @@ void exit_editmode(int freedata) /* freedata==0 at render, 1= freedata, 2= do un
|
||||
|
||||
/* displist make is different in editmode */
|
||||
if(freedata) G.obedit= NULL;
|
||||
|
||||
// need to be here since
|
||||
// makeDispList(ob); calls
|
||||
// int mesh_modifier(Object *ob, char mode)..
|
||||
// calling object_softbody_step(ob, ctime);
|
||||
// needs a valid *up to date* softbody object or NULL pointer at "soft" member
|
||||
// anyhow *new* dependacy graph should take care for that :)
|
||||
if(ob->softflag & 0x01) object_to_softbody(ob,1.0f);
|
||||
|
||||
makeDispList(ob);
|
||||
|
||||
/* has this influence at other objects? */
|
||||
@@ -1563,8 +1572,8 @@ void exit_editmode(int freedata) /* freedata==0 at render, 1= freedata, 2= do un
|
||||
allqueue(REDRAWOOPS, 0);
|
||||
}
|
||||
scrarea_queue_headredraw(curarea);
|
||||
|
||||
if(ob->softflag) object_to_softbody(ob);
|
||||
// faaaaar to late
|
||||
// if(ob->softflag & 0x01) object_to_softbody(ob);
|
||||
|
||||
if(G.obedit==NULL && freedata==2)
|
||||
BIF_undo_push("Editmode");
|
||||
|
||||
Reference in New Issue
Block a user