mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-06-30 13:26:02 -04:00
--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:
@ -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();
|
||||
|
Reference in New Issue
Block a user