mirror of https://github.com/axmolengine/axmol.git
Update parse animation easing
This commit is contained in:
parent
bdc67d9573
commit
755134ba3f
|
@ -866,13 +866,13 @@ void ActionTimelineCache::loadEasingDataWithFlatBuffers(cocostudio::timeline::Fr
|
|||
auto points = flatbuffers->points();
|
||||
if (points)
|
||||
{
|
||||
std::vector<float> easings;
|
||||
for (auto it = points->begin(); it != points->end(); ++it)
|
||||
{
|
||||
std::vector<float> easings;
|
||||
easings.push_back(it->x());
|
||||
easings.push_back(it->y());
|
||||
frame->setEasingParams(easings);
|
||||
}
|
||||
frame->setEasingParams(easings);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue