Skip to content

Commit

Permalink
Fix test failures on Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
kring committed Jul 3, 2024
1 parent 97f68d0 commit 9f1c89c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

##### Fixes :wrench:

- Fixed a bug that could cause a `bad_any_cast` exception when trying to access glTF extensions. This commonly popped up when loading tilesets with metadata.
- Fixed a bug that could cause a `bad_any_cast` exception when trying to access glTF extensions on non-Windows platforms. This commonly popped up when loading tilesets with metadata.
- Fixed a bug that caused the `GetInteger64` functions on `CesiumMetadataValue`, `CesiumPropertyArray`, and `CesiumPropertyTableProperty` to always return the default value on non-Windows platforms.

### v2.7.0 - 2024-07-01

Expand Down
2 changes: 1 addition & 1 deletion Source/CesiumRuntime/Private/CesiumMetadataValue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ int64 UCesiumMetadataValueBlueprintLibrary::GetInteger64(
int64 DefaultValue) {
return std::visit(
[DefaultValue](auto value) -> int64 {
return CesiumGltf::MetadataConversions<int64, decltype(value)>::convert(
return CesiumGltf::MetadataConversions<int64_t, decltype(value)>::convert(
value)
.value_or(DefaultValue);
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ int64 UCesiumPropertyArrayBlueprintLibrary::GetInteger64(
return defaultValue;
}
auto value = v[index];
return CesiumGltf::MetadataConversions<int64, decltype(value)>::convert(
return CesiumGltf::MetadataConversions<int64_t, decltype(value)>::convert(
value)
.value_or(defaultValue);
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ int64 UCesiumPropertyTablePropertyBlueprintLibrary::GetInteger64(
auto maybeValue = v.get(FeatureID);
if (maybeValue) {
auto value = *maybeValue;
return CesiumGltf::MetadataConversions<int64, decltype(value)>::
return CesiumGltf::MetadataConversions<int64_t, decltype(value)>::
convert(value)
.value_or(DefaultValue);
}
Expand Down

0 comments on commit 9f1c89c

Please sign in to comment.