fix(tiled): use the sti in the wrapper
This commit is contained in:
parent
f892b1ce4e
commit
eec43a522e
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue