Two fixes!

- undo system didn't work in editmode AT ALL!!! (stupid me)
- Lattice deform on non-subsurfed objects did not update
This commit is contained in:
Ton Roosendaal 2004-10-22 14:03:20 +00:00
parent eecaa4cb50
commit 070d01dd68
2 changed files with 2 additions and 1 deletions

@ -4130,6 +4130,7 @@ void draw_object(Base *base)
/* check for need for displist (it's zero when parent, key, or hook changed) */
if(ob->disp.first==NULL) {
if(ob->parent && ob->partype==PARSKEL) makeDispList(ob);
else if(ob->parent && ob->parent->type==OB_LATTICE) makeDispList(ob);
else if(ob->hooks.first) makeDispList(ob);
else if(ob->softflag) makeDispList(ob);
else if(me->disp.first==NULL && mesh_uses_displist(me)) makeDispList(ob);

@ -173,7 +173,7 @@ void undo_editmode_push(char *name, void (*freedata)(void *),
/* copy */
curundo->undodata= curundo->from_editmode();
curundo->ob= G.obedit;
curundo->id= G.obedit->id;
}