mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[lua] Ported addition of x/y bounding coordinates to SkeletonData. See #1325.
This commit is contained in:
parent
6e67fbf5e3
commit
67753024ec
@ -45,7 +45,7 @@ function SkeletonData.new ()
|
|||||||
ikConstraints = {},
|
ikConstraints = {},
|
||||||
transformConstraints = {},
|
transformConstraints = {},
|
||||||
pathConstraints = {},
|
pathConstraints = {},
|
||||||
width, height,
|
x, y, width, height,
|
||||||
version, hash, imagesPath,
|
version, hash, imagesPath,
|
||||||
slotNameIndices = {}
|
slotNameIndices = {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -84,6 +84,8 @@ function SkeletonJson.new (attachmentLoader)
|
|||||||
if skeletonMap then
|
if skeletonMap then
|
||||||
skeletonData.hash = skeletonMap["hash"]
|
skeletonData.hash = skeletonMap["hash"]
|
||||||
skeletonData.version = skeletonMap["spine"]
|
skeletonData.version = skeletonMap["spine"]
|
||||||
|
skeletonData.x = skeletonMap["x"]
|
||||||
|
skeletonData.y = skeletonMap["y"]
|
||||||
skeletonData.width = skeletonMap["width"]
|
skeletonData.width = skeletonMap["width"]
|
||||||
skeletonData.height = skeletonMap["height"]
|
skeletonData.height = skeletonMap["height"]
|
||||||
skeletonData.fps = skeletonMap["fps"]
|
skeletonData.fps = skeletonMap["fps"]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user