Don't cache ManagedAnimationNode lottie animations

This commit is contained in:
Ali 2023-04-14 11:22:18 +04:00
parent 008b2c4d3e
commit 014ee47a95

View File

@ -46,7 +46,7 @@ public final class ManagedAnimationState {
} else if let unpackedData = TGGUnzipData(data, 5 * 1024 * 1024) { } else if let unpackedData = TGGUnzipData(data, 5 * 1024 * 1024) {
data = unpackedData data = unpackedData
} }
guard let instance = LottieInstance(data: data, fitzModifier: .none, colorReplacements: item.replaceColors, cacheKey: item.source.cacheKey) else { guard let instance = LottieInstance(data: data, fitzModifier: .none, colorReplacements: item.replaceColors, cacheKey: "") else {
return nil return nil
} }
resolvedInstance = instance resolvedInstance = instance