| 1204 | } |
| 1205 | |
| 1206 | void LottieParserImpl::parseObject(model::Group *parent) |
| 1207 | { |
| 1208 | RAPIDJSON_ASSERT(PeekType() == kObjectType); |
| 1209 | EnterObject(); |
| 1210 | while (const char *key = NextObjectKey()) { |
| 1211 | if (0 == strcmp(key, "ty")) { |
| 1212 | auto child = parseObjectTypeAttr(); |
| 1213 | if (child && !child->hidden()) parent->mChildren.push_back(child); |
| 1214 | } else { |
| 1215 | Skip(key); |
| 1216 | } |
| 1217 | } |
| 1218 | } |
| 1219 | |
| 1220 | model::Object *LottieParserImpl::parseGroupObject() |
| 1221 | { |