Skip to content

Commit dc45e44

Browse files
add warning log
1 parent ab6d2fb commit dc45e44

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

crates/bevy_gltf/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ bevy_render = { path = "../bevy_render", version = "0.5.0" }
2424
bevy_transform = { path = "../bevy_transform", version = "0.5.0" }
2525
bevy_math = { path = "../bevy_math", version = "0.5.0" }
2626
bevy_scene = { path = "../bevy_scene", version = "0.5.0" }
27+
bevy_log = { path = "../bevy_log", version = "0.5.0" }
2728

2829
# other
2930
gltf = { version = "0.15.2", default-features = false, features = ["utils", "names", "KHR_materials_unlit"] }

crates/bevy_gltf/src/loader.rs

+1
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ async fn load_gltf<'a, 'b>(
143143
} else {
144144
let len = mesh.count_vertices();
145145
let uvs = vec![[0.0, 0.0]; len];
146+
bevy_log::warn!("missing `TEXCOORD_0` vertex attribute, loading zeroed out UVs");
146147
mesh.set_attribute(Mesh::ATTRIBUTE_UV_0, uvs);
147148
}
148149

0 commit comments

Comments
 (0)