Skip to content

Commit

Permalink
pCesium -> pAsset change
Browse files Browse the repository at this point in the history
  • Loading branch information
azrogers committed Oct 31, 2024
1 parent 5e44c38 commit a54cd26
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions native~/Runtime/src/TestGltfModelImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::uint16_t*>(image.pCesium->pixelData.data());
reinterpret_cast<std::uint16_t*>(image.pAsset->pixelData.data());
for (int32_t i = 0; i < featureIdsLength; i++) {
*pFeatureId = featureIds[i];
pFeatureId++;
Expand Down

0 comments on commit a54cd26

Please sign in to comment.