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:
subhransu mohanty 2019-05-22 12:36:04 +09:00 committed by Subhransu
parent 57eea32d4d
commit 0fa16936d1

View File

@ -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();