--User changes

-Undo list length increased from 128 to 512.

--Code changes
 -auguer doesn't need Zeps().
 -Additional check on undo list length when adding in certain circumstances.
This commit is contained in:
Person
2019-06-02 09:35:56 -07:00
parent a5bff61c81
commit adfe554b10
3 changed files with 4 additions and 7 deletions

View File

@ -458,7 +458,9 @@ bool FractoriumEmberController<T>::Render()
//else
// qDebug() << "Mouse was down, not adding to undo list.";
}
else if (!m_LastEditWasUndoRedo && m_UndoIndex < m_UndoList.size() - 1)//They were anywhere but the end of the undo list, then did a manual edit, so clear the undo list.
else if (!m_LastEditWasUndoRedo &&
m_UndoList.size() &&
m_UndoIndex < m_UndoList.size() - 1)//They were anywhere but the end of the undo list, then did a manual edit, so clear the undo list.
{
Ember<T> ember(m_UndoList[m_UndoIndex]);
ClearUndo();