Skip to content

Commit

Permalink
port: Make gltf_json usage robust against having more features enab…
Browse files Browse the repository at this point in the history
…led.
  • Loading branch information
kpreid committed Dec 11, 2023
1 parent 8b9aa50 commit 1b377f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions all-is-cubes-port/src/gltf/mesh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use std::fmt;
use std::mem::size_of;

use bytemuck::offset_of;
use gltf_json::extras::Void;
use gltf_json::validation::Checked::Valid;
use gltf_json::Index;

Expand Down Expand Up @@ -250,8 +249,9 @@ impl Materials {
transmission_factor:
gltf_json::extensions::material::TransmissionFactor::default(),
transmission_texture: None,
extras: Void::default(),
extras: Default::default(), // feature-variable type
}),
..Default::default() // feature-variable additional fields
}),
..gltf_json::Material::default()
},
Expand Down

0 comments on commit 1b377f3

Please sign in to comment.