mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-07 14:53:35 +00:00
lottie/parser: fix code indentations and a duplicated code
Change-Id: I01280529f6ada36ded67a31d24833049762f52ca
This commit is contained in:
parent
3756e7cb93
commit
02cb018c75
@ -746,9 +746,7 @@ std::shared_ptr<LOTData> LottieParserImpl::parseLayer()
|
||||
parenting and expressions.*/
|
||||
RAPIDJSON_ASSERT(PeekType() == kNumberType);
|
||||
layer->mId = GetInt();
|
||||
} else if (0 ==
|
||||
strcmp(key,
|
||||
"parent")) { /*Layer Parent. Uses "ind" of parent.*/
|
||||
} else if (0 == strcmp(key, "parent")) { /*Layer Parent. Uses "ind" of parent.*/
|
||||
RAPIDJSON_ASSERT(PeekType() == kNumberType);
|
||||
layer->mParentId = GetInt();
|
||||
} else if (0 == strcmp(key, "refId")) { /*preComp Layer reference id*/
|
||||
@ -789,8 +787,6 @@ std::shared_ptr<LOTData> LottieParserImpl::parseLayer()
|
||||
layer->mSolidLayer.mColor = toColor(GetString());
|
||||
} else if (0 == strcmp(key, "tt")) {
|
||||
layer->mMatteType = getMatteType();
|
||||
} else if (0 == strcmp(key, "tt")) {
|
||||
layer->mMatteType = getMatteType();
|
||||
} else if (0 == strcmp(key, "hasMask")) {
|
||||
layer->mHasMask = GetBool();
|
||||
} else if (0 == strcmp(key, "masksProperties")) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user