forked from noxious/client
Best undo/redo function across all map editor elements
This commit is contained in:
@ -43,12 +43,6 @@ export function useMapEditorComposable() {
|
||||
}
|
||||
}
|
||||
|
||||
const clearMap = () => {
|
||||
if (!currentMap.value) return
|
||||
currentMap.value.placedMapObjects = []
|
||||
currentMap.value.mapEventTiles = []
|
||||
}
|
||||
|
||||
const toggleActive = () => {
|
||||
if (active.value) reset()
|
||||
active.value = !active.value
|
||||
@ -124,7 +118,6 @@ export function useMapEditorComposable() {
|
||||
// Methods
|
||||
loadMap,
|
||||
updateProperty,
|
||||
clearMap,
|
||||
toggleActive,
|
||||
setTool,
|
||||
setDrawMode,
|
||||
|
Reference in New Issue
Block a user