| 4489 | } |
| 4490 | |
| 4491 | static bool ParseNormalTextureInfo( |
| 4492 | NormalTextureInfo *texinfo, std::string *err, const detail::json &o, |
| 4493 | bool store_original_json_for_extras_and_extensions) { |
| 4494 | if (texinfo == nullptr) { |
| 4495 | return false; |
| 4496 | } |
| 4497 | |
| 4498 | if (!ParseIntegerProperty(&texinfo->index, err, o, "index", |
| 4499 | /* required */ true, "NormalTextureInfo")) { |
| 4500 | return false; |
| 4501 | } |
| 4502 | |
| 4503 | ParseIntegerProperty(&texinfo->texCoord, err, o, "texCoord", false); |
| 4504 | ParseNumberProperty(&texinfo->scale, err, o, "scale", false); |
| 4505 | |
| 4506 | ParseExtrasAndExtensions(texinfo, err, o, |
| 4507 | store_original_json_for_extras_and_extensions); |
| 4508 | |
| 4509 | return true; |
| 4510 | } |
| 4511 | |
| 4512 | static bool ParseOcclusionTextureInfo( |
| 4513 | OcclusionTextureInfo *texinfo, std::string *err, const detail::json &o, |
no test coverage detected