Depth sorting fix for larger objects
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<Image v-for="object in zoneStore.zone?.zoneObjects" :depth="calculateIsometricDepth(object.positionX, object.positionY, 0)" :key="object.id" v-bind="getObjectImageProps(object)" />
|
||||
<Image v-for="object in zoneStore.zone?.zoneObjects" :depth="calculateIsometricDepth(object.positionX, object.positionY, object.object.frameWidth, object.object.frameHeight)" :key="object.id" v-bind="getObjectImageProps(object)" />
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
@ -7,7 +7,6 @@ import { calculateIsometricDepth, tileToWorldX, tileToWorldY } from '@/services/
|
||||
import { Image } from 'phavuer'
|
||||
import { useZoneStore } from '@/stores/zone'
|
||||
import type { ZoneObject } from '@/types'
|
||||
import { storeToRefs } from 'pinia'
|
||||
|
||||
const zoneStore = useZoneStore()
|
||||
|
||||
|
Reference in New Issue
Block a user