lottie/parser: updated parser to parse difference mask mode

Change-Id: I607d4f56a849d1cb928926c2d4ecc30cf1313e7e
This commit is contained in:
sub.mohanty@samsung.com
2018-08-21 00:33:51 +09:00
committed by Hermet Park
parent 6fb25316ee
commit bb877fd7d2
2 changed files with 5 additions and 1 deletions

View File

@@ -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;}

View File

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