mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-15 04:24:28 +00:00
lottie: fix a logic by a mistake.
This commit is contained in:
parent
3eb3364c60
commit
34b2e3ba37
1 changed files with 1 additions and 1 deletions
|
@ -587,7 +587,7 @@ struct LottieGroup : LottieObject
|
|||
//source has children, find recursively.
|
||||
for (auto c = children.begin(); c < children.end(); ++c) {
|
||||
auto child = *c;
|
||||
if (child->type == LottieObject::Type::Group || type == LottieObject::Type::Layer) {
|
||||
if (child->type == LottieObject::Type::Group || child->type == LottieObject::Type::Layer) {
|
||||
if (auto ret = static_cast<LottieGroup*>(child)->content(id)) return ret;
|
||||
} else if (child->name && !strcmp(child->name, id)) return child;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue