mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-20 06:52:03 +00:00
lottie: fix a logic by a mistake.
This commit is contained in:
parent
9521e80e4c
commit
1b4502bade
1 changed files with 1 additions and 1 deletions
|
@ -587,7 +587,7 @@ struct LottieGroup : LottieObject
|
||||||
//source has children, find recursively.
|
//source has children, find recursively.
|
||||||
for (auto c = children.begin(); c < children.end(); ++c) {
|
for (auto c = children.begin(); c < children.end(); ++c) {
|
||||||
auto child = *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;
|
if (auto ret = static_cast<LottieGroup*>(child)->content(id)) return ret;
|
||||||
} else if (child->name && !strcmp(child->name, id)) return child;
|
} else if (child->name && !strcmp(child->name, id)) return child;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue