mirror of https://github.com/axmolengine/axmol.git
Merge pull request #7808 from 2youyouo2/v3
fixed ArmatureAnimation::setSpeedScale
This commit is contained in:
commit
2f2ee43b21
|
@ -153,7 +153,7 @@ void ArmatureAnimation::setSpeedScale(float speedScale)
|
||||||
bone->getTween()->setProcessScale(_processScale);
|
bone->getTween()->setProcessScale(_processScale);
|
||||||
if (bone->getChildArmature())
|
if (bone->getChildArmature())
|
||||||
{
|
{
|
||||||
bone->getChildArmature()->getAnimation()->setProcessScale(_processScale);
|
bone->getChildArmature()->getAnimation()->setSpeedScale(_processScale);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -228,7 +228,7 @@ void ArmatureAnimation::play(const std::string& animationName, int durationTo,
|
||||||
|
|
||||||
if (bone->getChildArmature())
|
if (bone->getChildArmature())
|
||||||
{
|
{
|
||||||
bone->getChildArmature()->getAnimation()->setProcessScale(_processScale);
|
bone->getChildArmature()->getAnimation()->setSpeedScale(_processScale);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue