#102 - Various zone editor UX improvements and bug fixes

This commit is contained in:
2024-09-14 17:29:41 +02:00
parent b05a5920ba
commit 4629dafece
6 changed files with 27 additions and 21 deletions

View File

@ -85,7 +85,7 @@ export const useZoneEditorStore = defineStore('zoneEditor', {
setSelectedObject(object: any) {
this.selectedObject = object
},
setSelectedZoneObject(zoneObject: ZoneObject) {
setSelectedZoneObject(zoneObject: ZoneObject | null) {
const gameStore = useGameStore() // Access the gameStore
if (gameStore.isMovingCamera) return // Step 2: Check isMovingCamera before proceeding