mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 21:53:41 +00:00
lottie/text: hotfix for parsing text range issue
If randomize is not enabled, "rn" prop falls into skip()
This commit is contained in:
parent
1fe9f269b1
commit
b9b1336817
1 changed files with 1 additions and 1 deletions
|
@ -1123,7 +1123,7 @@ void LottieParser::parseTextRange(LottieText* text)
|
||||||
else if (KEY_AS("ne")) parseProperty<LottieProperty::Type::Float>(selector->minEase);
|
else if (KEY_AS("ne")) parseProperty<LottieProperty::Type::Float>(selector->minEase);
|
||||||
else if (KEY_AS("a")) parseProperty<LottieProperty::Type::Float>(selector->maxAmount);
|
else if (KEY_AS("a")) parseProperty<LottieProperty::Type::Float>(selector->maxAmount);
|
||||||
else if (KEY_AS("b")) selector->based = (LottieTextRange::Based) getInt();
|
else if (KEY_AS("b")) selector->based = (LottieTextRange::Based) getInt();
|
||||||
else if (KEY_AS("rn") && getInt()) selector->random = rand();
|
else if (KEY_AS("rn")) selector->random = getInt() ? rand() : 0;
|
||||||
else if (KEY_AS("sh")) selector->shape = (LottieTextRange::Shape) getInt();
|
else if (KEY_AS("sh")) selector->shape = (LottieTextRange::Shape) getInt();
|
||||||
else if (KEY_AS("o")) parseProperty<LottieProperty::Type::Float>(selector->offset);
|
else if (KEY_AS("o")) parseProperty<LottieProperty::Type::Float>(selector->offset);
|
||||||
else if (KEY_AS("r")) selector->rangeUnit = (LottieTextRange::Unit) getInt();
|
else if (KEY_AS("r")) selector->rangeUnit = (LottieTextRange::Unit) getInt();
|
||||||
|
|
Loading…
Add table
Reference in a new issue