We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05b921b commit cc25a2bCopy full SHA for cc25a2b
src/geometry.rs
@@ -101,7 +101,7 @@ impl ToSimpleMeshWithMaterial for Mesh {
101
tri.v3.y = self.positions[(self.indices[x * 3 + 2] * 3 + 1) as usize];
102
tri.v3.z = self.positions[(self.indices[x * 3 + 2] * 3 + 2) as usize];
103
104
- if materials.is_empty() {
+ if !materials.is_empty() {
105
let material = &materials[self.material_id.unwrap()];
106
tri.color = (
107
(material.diffuse[0] * 255.0) as u8,
0 commit comments