Skip to content

Commit

Permalink
Update cesium-native.
Browse files Browse the repository at this point in the history
  • Loading branch information
kring committed Nov 19, 2024
1 parent 871393b commit 53a9f1b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ void FCesiumPropertyTableSpec::Define() {
model = CesiumGltf::Model();
pExtension =
&model.addExtension<CesiumGltf::ExtensionModelExtStructuralMetadata>();
pExtension->schema = CesiumGltf::Schema();
pExtension->schema.emplace();
pPropertyTable = &pExtension->propertyTables.emplace_back();
});

Expand All @@ -42,7 +42,7 @@ void FCesiumPropertyTableSpec::Define() {
});

It("constructs invalid instance for missing schema", [this]() {
pExtension->schema = std::nullopt;
pExtension->schema.reset();

FCesiumPropertyTable propertyTable(model, *pPropertyTable);
TestEqual(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void FCesiumPropertyTextureSpec::Define() {
BeforeEach([this]() {
model = Model();
pExtension = &model.addExtension<ExtensionModelExtStructuralMetadata>();
pExtension->schema = Schema();
pExtension->schema.emplace();
pPropertyTexture = &pExtension->propertyTextures.emplace_back();
});

Expand All @@ -53,7 +53,7 @@ void FCesiumPropertyTextureSpec::Define() {
});

It("constructs invalid instance for missing schema", [this]() {
pExtension->schema = std::nullopt;
pExtension->schema.reset();

FCesiumPropertyTexture propertyTexture(model, *pPropertyTexture);
TestEqual(
Expand Down
2 changes: 1 addition & 1 deletion extern/cesium-native
Submodule cesium-native updated 130 files

0 comments on commit 53a9f1b

Please sign in to comment.