mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Merge pull request #317 from jpoag/master
Hash and Version Info for Spine-c runtime
This commit is contained in:
commit
784fa15644
@ -62,6 +62,9 @@ void spSkeletonData_dispose (spSkeletonData* self) {
|
|||||||
spIkConstraintData_dispose(self->ikConstraints[i]);
|
spIkConstraintData_dispose(self->ikConstraints[i]);
|
||||||
FREE(self->ikConstraints);
|
FREE(self->ikConstraints);
|
||||||
|
|
||||||
|
FREE(self->hash);
|
||||||
|
FREE(self->version);
|
||||||
|
|
||||||
FREE(self);
|
FREE(self);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -434,8 +434,8 @@ spSkeletonData* spSkeletonJson_readSkeletonData (spSkeletonJson* self, const cha
|
|||||||
|
|
||||||
skeleton = Json_getItem(root, "skeleton");
|
skeleton = Json_getItem(root, "skeleton");
|
||||||
if (skeleton) {
|
if (skeleton) {
|
||||||
skeletonData->hash = Json_getString(skeleton, "hash", 0);
|
MALLOC_STR(skeletonData->hash, Json_getString(skeleton, "hash", 0));
|
||||||
skeletonData->version = Json_getString(skeleton, "spine", 0);
|
MALLOC_STR(skeletonData->version, Json_getString(skeleton, "spine", 0));
|
||||||
skeletonData->width = Json_getFloat(skeleton, "width", 0);
|
skeletonData->width = Json_getFloat(skeleton, "width", 0);
|
||||||
skeletonData->height = Json_getFloat(skeleton, "height", 0);
|
skeletonData->height = Json_getFloat(skeleton, "height", 0);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user