mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-31 01:42:18 +00:00
rlottie/parser: Fix float data parsing when data in array form.
Take only the 1st element and discard the rest.
This commit is contained in:
parent
57eea32d4d
commit
0fa16936d1
@ -1685,8 +1685,10 @@ void LottieParserImpl::getValue(float &val)
|
||||
{
|
||||
if (PeekType() == kArrayType) {
|
||||
EnterArray();
|
||||
if (NextArrayValue()) val = GetDouble();
|
||||
//discard rest
|
||||
while (NextArrayValue()) {
|
||||
val = GetDouble();
|
||||
GetDouble();
|
||||
}
|
||||
} else if (PeekType() == kNumberType) {
|
||||
val = GetDouble();
|
||||
|
Loading…
x
Reference in New Issue
Block a user