diff --git a/cocos/editor-support/cocostudio/ActionTimeline/CCActionTimelineCache.cpp b/cocos/editor-support/cocostudio/ActionTimeline/CCActionTimelineCache.cpp index 16e839a296..45cf6f836f 100644 --- a/cocos/editor-support/cocostudio/ActionTimeline/CCActionTimelineCache.cpp +++ b/cocos/editor-support/cocostudio/ActionTimeline/CCActionTimelineCache.cpp @@ -866,13 +866,13 @@ void ActionTimelineCache::loadEasingDataWithFlatBuffers(cocostudio::timeline::Fr auto points = flatbuffers->points(); if (points) { + std::vector easings; for (auto it = points->begin(); it != points->end(); ++it) { - std::vector easings; easings.push_back(it->x()); easings.push_back(it->y()); - frame->setEasingParams(easings); } + frame->setEasingParams(easings); } } diff --git a/tests/cpp-tests/Resources/ActionTimeline/ActionTimelineEase.csb b/tests/cpp-tests/Resources/ActionTimeline/ActionTimelineEase.csb index 0f6311348b..3be00c33cf 100644 Binary files a/tests/cpp-tests/Resources/ActionTimeline/ActionTimelineEase.csb and b/tests/cpp-tests/Resources/ActionTimeline/ActionTimelineEase.csb differ