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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user