--User changes

-Allow changes which do not trigger a full render to be added to the undo list.

--Code changes
 -Optimize hypershift2.
This commit is contained in:
Person
2019-05-30 19:16:23 -07:00
parent a008809351
commit 255859678a
3 changed files with 45 additions and 41 deletions

View File

@ -443,7 +443,8 @@ bool FractoriumEmberController<T>::Render()
{
auto btn = QApplication::mouseButtons();
if (!btn.testFlag(Qt::LeftButton) && !btn.testFlag(Qt::RightButton) && !btn.testFlag(Qt::MiddleButton))
if ((action == eProcessAction::ACCUM_ONLY || action == eProcessAction::FILTER_AND_ACCUM) ||
(!btn.testFlag(Qt::LeftButton) && !btn.testFlag(Qt::RightButton) && !btn.testFlag(Qt::MiddleButton)))
{
m_UndoList.push_back(m_Ember);
m_UndoIndex = m_UndoList.size() - 1;