This repository has been archived by the owner on Dec 21, 2021. It is now read-only.
make more operations undo-able #18
Labels
enhancement
New feature or request
help wanted
Extra attention is needed
question
Further information is requested
to get undo support working, Merino uses a secret temporary ScriptableObject (
MerinoTreeData serializedTreeData
) so that it can useUndo.RecordObject()
with it... but I think I don't quite understand the undo system well enough to fix various bugs / extend the functionalityMerino also keeps its own stack of undo snapshots, so that it can compare those snapshots to Unity's undo stack, diff strings, and move the keyboard caret cursor back to the undo point (see
MerinoEditorWindow.OnUndo()
)we still need undo support for:
currentFiles
andfileToNodeID
dictionary as well... should we store this data in serializedTreeData somehow?)I suspect there's probably some much more elegant way to do all of this, instead of manually recording undo snapshots everywhere in all these different methods... again, help would be appreciated from someone who understands Unity's undo system better, and can explain more about how to handle all this
The text was updated successfully, but these errors were encountered: