[lua] Ported addition of x/y bounding coordinates to SkeletonData. See #1325.

This commit is contained in:
badlogic 2019-04-16 14:52:52 +02:00
parent 6e67fbf5e3
commit 67753024ec
2 changed files with 3 additions and 1 deletions

View File

@ -45,7 +45,7 @@ function SkeletonData.new ()
ikConstraints = {},
transformConstraints = {},
pathConstraints = {},
width, height,
x, y, width, height,
version, hash, imagesPath,
slotNameIndices = {}
}

View File

@ -84,6 +84,8 @@ function SkeletonJson.new (attachmentLoader)
if skeletonMap then
skeletonData.hash = skeletonMap["hash"]
skeletonData.version = skeletonMap["spine"]
skeletonData.x = skeletonMap["x"]
skeletonData.y = skeletonMap["y"]
skeletonData.width = skeletonMap["width"]
skeletonData.height = skeletonMap["height"]
skeletonData.fps = skeletonMap["fps"]