------------------------------------------------------------------------------
| 1673 | |
| 1674 | //------------------------------------------------------------------------------ |
| 1675 | bool vtkGLTFDocumentLoaderInternals::LoadNodeExtensions( |
| 1676 | const nlohmann::json& root, vtkGLTFDocumentLoader::Node::Extensions& nodeExtensions) |
| 1677 | { |
| 1678 | auto rootLightsPunctualIt = root.find("KHR_lights_punctual"); |
| 1679 | for (const std::string& usedExtensionName : this->Self->GetUsedExtensions()) |
| 1680 | { |
| 1681 | if (usedExtensionName == "KHR_lights_punctual" && rootLightsPunctualIt != root.end() && |
| 1682 | rootLightsPunctualIt.value().is_object()) |
| 1683 | { |
| 1684 | this->LoadKHRLightsPunctualNodeExtension( |
| 1685 | rootLightsPunctualIt.value(), nodeExtensions.KHRLightsPunctualMetaData); |
| 1686 | } |
| 1687 | // New node extensions should be loaded from here |
| 1688 | } |
| 1689 | return true; |
| 1690 | } |
| 1691 | |
| 1692 | //------------------------------------------------------------------------------ |
| 1693 | bool vtkGLTFDocumentLoaderInternals::LoadExtensions( |
no test coverage detected