mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
lottie: ++safety
This commit is contained in:
parent
ceb07c61df
commit
d038518e6d
1 changed files with 1 additions and 1 deletions
|
@ -1313,7 +1313,7 @@ void LottieParser::parseEffects(LottieLayer* layer)
|
||||||
}
|
}
|
||||||
//TODO: remove when all effects were guaranteed.
|
//TODO: remove when all effects were guaranteed.
|
||||||
if (invalid) {
|
if (invalid) {
|
||||||
TVGLOG("LOTTIE", "Not supported Layer Effect = %d", (int)effect->type);
|
TVGLOG("LOTTIE", "Not supported Layer Effect = %d", effect ? (int)effect->type : -1);
|
||||||
while (auto key = nextObjectKey()) skip(key);
|
while (auto key = nextObjectKey()) skip(key);
|
||||||
} else layer->effects.push(effect);
|
} else layer->effects.push(effect);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue