diff --git a/src/graphics.rs b/src/graphics.rs index 0a0be3a..e83ee9e 100644 --- a/src/graphics.rs +++ b/src/graphics.rs @@ -221,7 +221,7 @@ impl GraphicsState{ for model in indexed_models.models.into_iter(){ //convert ModelInstance into GraphicsModelInstance let instances:Vec=model.instances.into_iter().filter_map(|instance|{ - if instance.color.w==0.0{ + if instance.color.w==0.0&&!model.groups.iter().any(|g|g.texture.is_some()){ None }else{ Some(GraphicsModelInstance{