mirror of
				https://bitbucket.org/mfeemster/fractorium.git
				synced 2025-10-31 09:20:23 -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:
		| @ -6879,11 +6879,6 @@ public: | ||||
| 		m_HalfScale = m_Scale / 2; | ||||
| 	} | ||||
|  | ||||
| 	virtual vector<string> OpenCLGlobalFuncNames() const override | ||||
| 	{ | ||||
| 		return vector<string> { "Zeps" }; | ||||
| 	} | ||||
|  | ||||
| protected: | ||||
| 	void Init() | ||||
| 	{ | ||||
|  | ||||
| @ -33,7 +33,7 @@ template <typename T> class PreviewRenderer; | ||||
| template <typename T> class TreePreviewRenderer; | ||||
|  | ||||
| #define PREVIEW_SIZE 256 | ||||
| #define UNDO_SIZE 128 | ||||
| #define UNDO_SIZE 512 | ||||
|  | ||||
| /// <summary> | ||||
| /// FractoriumEmberControllerBase serves as a non-templated base class with virtual | ||||
|  | ||||
| @ -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
	 Person
					Person