mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 01:06:00 +08:00
[c][cpp] Closes #2551, fix inherit transform timelines
This commit is contained in:
parent
314636aa07
commit
ccac475c81
@ -535,7 +535,7 @@ static spAnimation *_spSkeletonJson_readAnimation(spSkeletonJson *self, Json *ro
|
||||
keyMap = timelineMap->child;
|
||||
for (frame = 0;; frame++) {
|
||||
float time = Json_getFloat(keyMap, "time", 0);
|
||||
const char *value = Json_getString(keyMap, "value", "normal");
|
||||
const char *value = Json_getString(keyMap, "inherit", "normal");
|
||||
spInherit inherit = SP_INHERIT_NORMAL;
|
||||
if (strcmp(value, "normal") == 0) inherit = SP_INHERIT_NORMAL;
|
||||
else if (strcmp(value, "onlyTranslation") == 0)
|
||||
|
||||
@ -1160,7 +1160,7 @@ Animation *SkeletonJson::readAnimation(Json *root, SkeletonData *skeletonData) {
|
||||
keyMap = timelineMap->_child;
|
||||
for (frame = 0;; frame++) {
|
||||
float time = Json::getFloat(keyMap, "time", 0);
|
||||
const char *value = Json::getString(keyMap, "value", "normal");
|
||||
const char *value = Json::getString(keyMap, "inherit", "normal");
|
||||
Inherit inherit = Inherit_Normal;
|
||||
if (strcmp(value, "normal") == 0) inherit = Inherit_Normal;
|
||||
else if (strcmp(value, "onlyTranslation") == 0)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user