Zone editor UX improvements, possibly fixed login issue after registration
This commit is contained in:
@ -39,7 +39,7 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import type { Object } from '@/types'
|
||||
import { computed, onBeforeMount, onBeforeUnmount, onMounted, ref, watch } from 'vue'
|
||||
import { computed, onBeforeUnmount, onMounted, ref, watch } from 'vue'
|
||||
import { useAssetManagerStore } from '@/stores/assetManager'
|
||||
import { useZoneEditorStore } from '@/stores/zoneEditor'
|
||||
import { useGameStore } from '@/stores/game'
|
||||
@ -56,7 +56,7 @@ const objectName = ref('')
|
||||
const objectTags = ref([] as string[])
|
||||
const objectOriginX = ref(0)
|
||||
const objectOriginY = ref(0)
|
||||
const objectIsAnimated = ref(0)
|
||||
const objectIsAnimated = ref(false)
|
||||
|
||||
if (!selectedObject.value) {
|
||||
console.error('No object selected')
|
||||
@ -67,7 +67,7 @@ if (selectedObject.value) {
|
||||
objectTags.value = selectedObject.value.tags
|
||||
objectOriginX.value = selectedObject.value.origin_x
|
||||
objectOriginY.value = selectedObject.value.origin_y
|
||||
objectIsAnimated.value = selectedObject.value.is_animated
|
||||
objectIsAnimated.value = selectedObject.value.isAnimated
|
||||
}
|
||||
|
||||
function removeObject() {
|
||||
|
Reference in New Issue
Block a user