Fixed bug #5592, change from sculpt mode to edit mode crashes 2.43RC1 on OsX Intel. Fix was to check that undo data is taken from the correct object.

This commit is contained in:
2007-01-04 07:48:26 +00:00
parent 31e4149c44
commit 6643cc53d9
3 changed files with 5 additions and 4 deletions

View File

@@ -340,9 +340,9 @@ uiBlock *editmode_undohistorymenu(void *arg_unused)
return block;
}
void *undo_editmode_get_prev()
void *undo_editmode_get_prev(Object *ob)
{
UndoElem *ue= undobase.last;
if(ue && ue->prev) return ue->prev->undodata;
if(ue && ue->prev && ue->prev==ob) return ue->prev->undodata;
return NULL;
}