mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-06 09:03:52 +00:00
feat(editor): generator undo, quit confirmation, state cleanup
- All terrain generators now undoable: crater, mesa, hill, voronoi, dunes, detail noise, thermal erosion, canyon, island, ridge, road, river, perlin noise — all wrapped with recordGeneratorUndo/commit - Unsaved changes warning on quit: Save & Quit / Quit / Cancel dialog - createNewTerrain clears quest editor and path capture state - recordGeneratorUndo/commitGeneratorUndo helper methods snapshot all 256 chunks before/after any generator operation
This commit is contained in:
parent
86f1a7d109
commit
7e02db73df
4 changed files with 77 additions and 4 deletions
|
|
@ -163,6 +163,9 @@ private:
|
|||
std::vector<StampVertex> stampData_;
|
||||
glm::vec3 stampCenter_{0};
|
||||
|
||||
void recordGeneratorUndo();
|
||||
void commitGeneratorUndo();
|
||||
|
||||
pipeline::ADTTerrain* terrain_ = nullptr;
|
||||
EditorBrush brush_;
|
||||
EditorHistory history_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue