mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 08:42:43 +08:00
fixed may add last ratio twice
This commit is contained in:
@@ -319,7 +319,9 @@ function sampleMotionPaths (motionPaths, data, duration, fps) {
|
||||
startRatioOffset = 0;
|
||||
}
|
||||
|
||||
addNewDatas(values[values.length - 1], DynamicAnimCurve.Linear, ratios[ratios.length - 1]);
|
||||
if (ratios[ratios.length - 1] !== newRatios[newRatios.length -1]) {
|
||||
addNewDatas(values[values.length - 1], DynamicAnimCurve.Linear, ratios[ratios.length - 1]);
|
||||
}
|
||||
}
|
||||
|
||||
if (CC_TEST) {
|
||||
|
||||
Reference in New Issue
Block a user