Skip to content

Commit

Permalink
Hotfix for MIERUNE#493 (MIERUNE#495)
Browse files Browse the repository at this point in the history
  • Loading branch information
ciscorn authored Mar 19, 2024
1 parent ab19a0b commit 5182c4c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion nusamai/src/sink/cesiumtiles/metadata/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ impl Class {

// Fill in the default values for the properties that don't occur in the input
for (key, prop) in &mut self.properties {
if obj.attributes.contains_key(key) || obj.stereotype.id().is_some() {
if obj.attributes.contains_key(key)
|| (key == "id" && obj.stereotype.id().is_some())
{
continue;
}

Expand Down
4 changes: 3 additions & 1 deletion nusamai/src/sink/gltf/metadata/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ impl Class {

// Fill in the default values for the properties that don't occur in the input
for (key, prop) in &mut self.properties {
if obj.attributes.contains_key(key) || obj.stereotype.id().is_some() {
if obj.attributes.contains_key(key)
|| (key == "id" && obj.stereotype.id().is_some())
{
continue;
}

Expand Down

0 comments on commit 5182c4c

Please sign in to comment.