fix(tiled): use the sti in the wrapper

This commit is contained in:
Kazhnuz 2022-08-10 19:17:40 +02:00
parent f892b1ce4e
commit eec43a522e

View file

@ -5,8 +5,8 @@ local TiledMixins = Object:extend()
function TiledMixins:batchActor(objectlayer, object, layerx, layery) function TiledMixins:batchActor(objectlayer, object, layerx, layery)
local name = objectlayer.name local name = objectlayer.name
local gwidth = object.properties.gwidth or self.sti.tilewidth local gwidth = object.properties.gwidth or self.wrapper.sti.tilewidth
local gheight = object.properties.gheight or self.sti.tileheight local gheight = object.properties.gheight or self.wrapper.sti.tileheight
local x = object.x + layerx local x = object.x + layerx
local y = object.y + layery local y = object.y + layery
local z = object.properties.z or 0 local z = object.properties.z or 0