diff --git a/Source/CesiumRuntime/Private/CesiumBingMapsRasterOverlay.cpp b/Source/CesiumRuntime/Private/CesiumBingMapsRasterOverlay.cpp index a538e8c69..bcc7c0046 100644 --- a/Source/CesiumRuntime/Private/CesiumBingMapsRasterOverlay.cpp +++ b/Source/CesiumRuntime/Private/CesiumBingMapsRasterOverlay.cpp @@ -43,6 +43,5 @@ UCesiumBingMapsRasterOverlay::CreateOverlay( TCHAR_TO_UTF8(*this->BingMapsKey), mapStyle, "", - CesiumGeospatial::Ellipsoid::WGS84, options); } diff --git a/Source/CesiumRuntime/Private/CesiumGltfComponent.cpp b/Source/CesiumRuntime/Private/CesiumGltfComponent.cpp index 758059658..c502adb2a 100644 --- a/Source/CesiumRuntime/Private/CesiumGltfComponent.cpp +++ b/Source/CesiumRuntime/Private/CesiumGltfComponent.cpp @@ -3393,6 +3393,10 @@ void UCesiumGltfComponent::AttachRasterTile( EMaterialParameterAssociation::LayerParameter, i), translationAndScale); + check( + textureCoordinateID >= 0 && + textureCoordinateID < + primData.overlayTextureCoordinateIDToUVIndex.size()); pMaterial->SetScalarParameterValueByInfo( FMaterialParameterInfo( "TextureCoordinateIndex", diff --git a/Source/CesiumRuntime/Private/CesiumWebMapTileServiceRasterOverlay.cpp b/Source/CesiumRuntime/Private/CesiumWebMapTileServiceRasterOverlay.cpp index bd9a63fed..ecefeca4c 100644 --- a/Source/CesiumRuntime/Private/CesiumWebMapTileServiceRasterOverlay.cpp +++ b/Source/CesiumRuntime/Private/CesiumWebMapTileServiceRasterOverlay.cpp @@ -57,8 +57,7 @@ UCesiumWebMapTileServiceRasterOverlay::CreateOverlay( wmtsOptions.tileWidth = this->TileWidth; wmtsOptions.tileHeight = this->TileHeight; - const CesiumGeospatial::Ellipsoid& ellipsoid = - options.ellipsoid.value_or(CesiumGeospatial::Ellipsoid::WGS84); + const CesiumGeospatial::Ellipsoid& ellipsoid = options.ellipsoid; if (this->Projection == ECesiumWebMapTileServiceRasterOverlayProjection::Geographic) {