diff --git a/src/components/gameMaster/mapEditor/partials/Toolbar.vue b/src/components/gameMaster/mapEditor/partials/Toolbar.vue index 275af48..4073e4e 100644 --- a/src/components/gameMaster/mapEditor/partials/Toolbar.vue +++ b/src/components/gameMaster/mapEditor/partials/Toolbar.vue @@ -109,7 +109,7 @@ defineExpose({ tileListShown, mapObjectListShown }) // drawMode function setDrawMode(value: string) { - if (mapEditor.tool.value === 'paint' || mapEditor.tool.value === 'pencil') { + if (mapEditor.tool.value === 'paint' || mapEditor.tool.value === 'pencil' || mapEditor.tool.value === 'eraser') { emit('close-lists') if (value === 'tile') emit('open-tile-list') if (value === 'map_object') emit('open-map-object-list')