#236: Fixed clear button in map editor

This commit is contained in:
2024-11-04 23:44:34 +01:00
parent a653b61b51
commit bdc566e30f
3 changed files with 25 additions and 2 deletions

View File

@ -38,8 +38,10 @@ const tileMap = ref(null as Phaser.Tilemaps.Tilemap | null)
function clear() {
if (!zoneEditorStore.zone) return
// Clear objects, event tiles and tiles
zoneEditorStore.zone.zoneObjects = []
zoneEditorStore.zone.zoneEventTiles = []
zoneEditorStore.triggerClearTiles()
}
function save() {