--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

@ -6879,11 +6879,6 @@ public:
m_HalfScale = m_Scale / 2; m_HalfScale = m_Scale / 2;
} }
virtual vector<string> OpenCLGlobalFuncNames() const override
{
return vector<string> { "Zeps" };
}
protected: protected:
void Init() void Init()
{ {

View File

@ -33,7 +33,7 @@ template <typename T> class PreviewRenderer;
template <typename T> class TreePreviewRenderer; template <typename T> class TreePreviewRenderer;
#define PREVIEW_SIZE 256 #define PREVIEW_SIZE 256
#define UNDO_SIZE 128 #define UNDO_SIZE 512
/// <summary> /// <summary>
/// FractoriumEmberControllerBase serves as a non-templated base class with virtual /// FractoriumEmberControllerBase serves as a non-templated base class with virtual

View File

@ -458,7 +458,9 @@ bool FractoriumEmberController<T>::Render()
//else //else
// qDebug() << "Mouse was down, not adding to undo list."; // 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]); Ember<T> ember(m_UndoList[m_UndoIndex]);
ClearUndo(); ClearUndo();