2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Started Lottie::CacheState class.

This commit is contained in:
John Preston
2019-06-26 16:18:00 +02:00
parent 35bc2cc2a5
commit 10772f4ac5
11 changed files with 449 additions and 72 deletions

View File

@@ -1368,9 +1368,9 @@ void StickersListWidget::setupLottie(Set &set, int section, int index) {
auto &sticker = set.stickers[index];
const auto document = sticker.document;
sticker.animated = document->data().isEmpty()
? Lottie::FromFile(document->filepath())
: Lottie::FromData(document->data());
sticker.animated = Lottie::FromContent(
document->data(),
document->filepath());
const auto animation = sticker.animated.get();
animation->updates(