File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1060,7 +1060,7 @@ model::Layer *LottieParserImpl::parseLayer()
10601060 staticFlag &= child->isStatic ();
10611061 }
10621062
1063- if (layer->hasMask ()) {
1063+ if (layer->hasMask () && layer-> mExtra ) {
10641064 for (const auto &mask : layer->mExtra ->mMasks ) {
10651065 staticFlag &= mask->isStatic ();
10661066 }
@@ -1560,10 +1560,13 @@ model::Transform *LottieParserImpl::parseTransformObject(bool ddd)
15601560 } else if (0 == strcmp (key, " hd" )) {
15611561 objT->setHidden (GetBool ());
15621562 } else if (0 == strcmp (key, " rx" )) {
1563+ if (!obj->mExtra ) return nullptr ;
15631564 parseProperty (obj->mExtra ->m3DRx );
15641565 } else if (0 == strcmp (key, " ry" )) {
1566+ if (!obj->mExtra ) return nullptr ;
15651567 parseProperty (obj->mExtra ->m3DRy );
15661568 } else if (0 == strcmp (key, " rz" )) {
1569+ if (!obj->mExtra ) return nullptr ;
15671570 parseProperty (obj->mExtra ->m3DRz );
15681571 } else {
15691572 Skip (key);
You can’t perform that action at this time.
0 commit comments