Repository navigation
Conversation
|
Thank you for the pull request, @j9liu! ✅ We can confirm we have a CLA on file for you. |
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
A non-inline function definition in a public header breaks multi-translation-unit linking and Windows shared-library consumers, while lazy initialization overwrites custom converter registrations.
2 open issues
What changed in this PR
Makes Cesium Native’s built-in glTF converters initialize automatically before loading content, removing the manual setup requirement for streaming 3D Tiles and addressing #1487.
Changes:
- Registers built-in converters on first lookup using
std::call_once. - Deprecates
registerAllConverterTypesas a no-op and documents the change. - Removes explicit registration calls and includes from existing tests.
| File | Description |
|---|---|
CHANGES.md |
Documents automatic registration and deprecation. |
CesiumVectorOverlays/test/TestVectorTilesRasterOverlay.cpp |
Removes manual registration from overlay tests. |
CesiumQuantizedMeshTerrain/test/TestQuantizedMeshContent.cpp |
Removes manual registration from terrain conversion tests. |
CesiumGltfConverters/src/registerAllConverterTypes.cpp |
Deletes the standalone registration implementation. |
CesiumGltfConverters/src/GltfConverters.cpp |
Adds one-time initialization to magic and extension lookups. |
CesiumGltfConverters/include/CesiumGltfConverters/registerAllConverterTypes.h |
Replaces the legacy declaration with a deprecated no-op definition. |
Cesium3DTilesSelection/test/TestTilesetSelectionAlgorithm.cpp |
Removes manual registration from selection tests. |
Cesium3DTilesSelection/test/TestTilesetJsonLoader.cpp |
Removes manual registration from JSON loader tests. |
Cesium3DTilesSelection/test/TestTilesetHeightQueries.cpp |
Removes manual registration from height-query tests. |
Cesium3DTilesSelection/test/TestTilesetGltfLoader.cpp |
Removes manual registration from glTF loader tests. |
Cesium3DTilesSelection/test/TestTilesetContentManager.cpp |
Removes manual registration from content-manager tests. |
Cesium3DTilesSelection/test/TestLayerJsonTerrainLoader.cpp |
Removes manual registration from terrain-loader tests. |
Cesium3DTilesSelection/test/TestImplicitQuadtreeLoader.cpp |
Removes manual registration from implicit quadtree tests. |
Cesium3DTilesSelection/test/TestImplicitOctreeLoader.cpp |
Removes manual registration from implicit octree tests. |
Cesium3DTilesSelection/test/TestContentGroup.cpp |
Removes manual registration from content-group tests. |
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Description
This change removes the requirement of calling
registerAllConverterTypesbefore streaming 3D Tiles. Thestd::call_oncesolution was introduced by Copilot with some manual cleanup from my end.Issue number or link
Closes #1487.
Author checklist
CHANGES.mdwith a short summary of my change (for user-facing changes).Testing plan
Tests should pass as expected, but I'll also open branches on Unreal / Unity side to ensure tilesets still stream as expected.
Reviewer checklist
Thank you for taking the time to review this PR. By approving a PR you are taking as much responsibility for these changes as the author.
As you review, please go through the checklist below:
CHANGES.mdto make sure they accurately cover the work in this PR.