Merge pull request #15 from pipu/parse_animation_easing

Update parse animation easing.
This commit is contained in:
xiaofeng11 2015-04-10 17:10:02 +08:00
commit ed7907b712
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}