mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-31 16:25:51 +00:00
lottie/parser: updated parser to parse difference mask mode
Change-Id: I607d4f56a849d1cb928926c2d4ecc30cf1313e7e
This commit is contained in:
committed by
Hermet Park
parent
6fb25316ee
commit
bb877fd7d2
@@ -587,7 +587,8 @@ public:
|
||||
None,
|
||||
Add,
|
||||
Substarct,
|
||||
Intersect
|
||||
Intersect,
|
||||
Difference
|
||||
};
|
||||
float opacity(int frameNo) const {return mOpacity.value(frameNo)/100.0;}
|
||||
bool isStatic() const {return mIsStatic;}
|
||||
|
||||
@@ -849,6 +849,9 @@ std::shared_ptr<LOTMaskData> LottieParserImpl::parseMaskObject()
|
||||
case 'i':
|
||||
obj->mMode = LOTMaskData::Mode::Intersect;
|
||||
break;
|
||||
case 'f':
|
||||
obj->mMode = LOTMaskData::Mode::Difference;
|
||||
break;
|
||||
default:
|
||||
obj->mMode = LOTMaskData::Mode::None;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user