mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-13 10:38:46 +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 = {},
|
||||
transformConstraints = {},
|
||||
pathConstraints = {},
|
||||
width, height,
|
||||
x, y, width, height,
|
||||
version, hash, imagesPath,
|
||||
slotNameIndices = {}
|
||||
}
|
||||
|
||||
@ -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"]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user