diff --git a/native~/Runtime/src/TestGltfModelImpl.cpp b/native~/Runtime/src/TestGltfModelImpl.cpp index 3f0aa896..a4b55a09 100644 --- a/native~/Runtime/src/TestGltfModelImpl.cpp +++ b/native~/Runtime/src/TestGltfModelImpl.cpp @@ -87,15 +87,15 @@ TestGltfModelImpl::AddFeatureIdTexture( // Copy feature IDs to texture. CesiumGltf::Image& image = this->_nativeModel.images.emplace_back(); - image.pCesium.emplace(); - image.pCesium->width = 2; - image.pCesium->height = 2; - image.pCesium->bytesPerChannel = 1; - image.pCesium->channels = 2; - image.pCesium->pixelData.resize(featureIdsLength * sizeof(std::uint16_t)); + image.pAsset.emplace(); + image.pAsset->width = 2; + image.pAsset->height = 2; + image.pAsset->bytesPerChannel = 1; + image.pAsset->channels = 2; + image.pAsset->pixelData.resize(featureIdsLength * sizeof(std::uint16_t)); std::uint16_t* pFeatureId = - reinterpret_cast(image.pCesium->pixelData.data()); + reinterpret_cast(image.pAsset->pixelData.data()); for (int32_t i = 0; i < featureIdsLength; i++) { *pFeatureId = featureIds[i]; pFeatureId++;