Skip to content

Commit

Permalink
Fixed animation last key frame end time
Browse files Browse the repository at this point in the history
Init keyframe end time with its start time, will be updated when parsing next key frame if any (solves issue interpolating to last keyframe) - Solves issue 548 Samsung#548
  • Loading branch information
mattbeghin committed Aug 21, 2023
1 parent f969abf commit c5c2063
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lottie/lottieparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2032,6 +2032,7 @@ void LottieParserImpl::parseKeyFrame(model::KeyFrames<T, Tag> &obj)
outTangent = parseInperpolatorPoint();
} else if (0 == strcmp(key, "t")) {
keyframe.start_ = GetDouble();
keyframe.end_ = keyframe.start_;
} else if (0 == strcmp(key, "s")) {
parsed.value = true;
getValue(keyframe.value_.start_);
Expand Down

0 comments on commit c5c2063

Please sign in to comment.