Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RequestHeaders property to Cesium3DTileset #1581

Merged
merged 14 commits into from
Jan 29, 2025
Merged

Conversation

azrogers
Copy link
Contributor

@azrogers azrogers commented Jan 9, 2025

To support use cases like #737, this change adds a RequestHeaders property to the Cesium3DTileset, which passes these headers through to the tileset loader for them to be attached to each request made. Depends on CesiumGS/cesium-native#1057.

Copy link
Member

@kring kring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works great, just a few nitpicky comments.

Source/CesiumRuntime/Private/Cesium3DTileset.cpp Outdated Show resolved Hide resolved
Source/CesiumRuntime/Private/Cesium3DTileset.cpp Outdated Show resolved Hide resolved
Source/CesiumRuntime/Private/Cesium3DTileset.cpp Outdated Show resolved Hide resolved
Copy link
Member

@kring kring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a tiny comment. I'm going to make this change myself to save a cycle and get this merged.

@@ -385,6 +385,31 @@ void ACesium3DTileset::SetTilesetSource(ETilesetSource InSource) {
}
}

bool CompareMaps(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should go in the anonymous namespace.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also something like MapsAreEqual would be a better name than CompareMaps, because the latter doesn't indicate as clearly what it means when the function returns true or false.

@kring
Copy link
Member

kring commented Jan 29, 2025

Thanks @azrogers!

@kring kring merged commit 950e28f into main Jan 29, 2025
14 checks passed
@kring kring deleted the request-headers-tileset branch January 29, 2025 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants