Skip to content

Commit

Permalink
heightSampled -> sampleSuccess.
Browse files Browse the repository at this point in the history
  • Loading branch information
kring committed Sep 27, 2024
1 parent 7682003 commit 432cd1e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions native~/Runtime/src/Cesium3DTilesetImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -440,9 +440,9 @@ Cesium3DTilesetImpl::SampleHeightMostDetailed(
positionRadians.height});
}

System::Array1<bool> heightSampled(result.heightSampled.size());
for (size_t i = 0; i < result.heightSampled.size(); ++i) {
heightSampled.Item(i, result.heightSampled[i]);
System::Array1<bool> sampleSuccess(result.sampleSuccess.size());
for (size_t i = 0; i < result.sampleSuccess.size(); ++i) {
sampleSuccess.Item(i, result.sampleSuccess[i]);
}

System::Array1<System::String> warnings(result.warnings.size());
Expand All @@ -452,7 +452,7 @@ Cesium3DTilesetImpl::SampleHeightMostDetailed(

CesiumForUnity::CesiumSampleHeightResult unityResult;
unityResult.longitudeLatitudeHeightPositions(positions);
unityResult.sampleSuccess(heightSampled);
unityResult.sampleSuccess(sampleSuccess);
unityResult.warnings(warnings);

promise.SetResult(unityResult);
Expand Down

0 comments on commit 432cd1e

Please sign in to comment.