diff --git a/crates/bevy_gltf/Cargo.toml b/crates/bevy_gltf/Cargo.toml index b845230c692be0..46cea2ffd792f5 100644 --- a/crates/bevy_gltf/Cargo.toml +++ b/crates/bevy_gltf/Cargo.toml @@ -24,6 +24,7 @@ bevy_render = { path = "../bevy_render", version = "0.5.0" } bevy_transform = { path = "../bevy_transform", version = "0.5.0" } bevy_math = { path = "../bevy_math", version = "0.5.0" } bevy_scene = { path = "../bevy_scene", version = "0.5.0" } +bevy_log = { path = "../bevy_log", version = "0.5.0" } # other gltf = { version = "0.15.2", default-features = false, features = ["utils", "names", "KHR_materials_unlit"] } diff --git a/crates/bevy_gltf/src/loader.rs b/crates/bevy_gltf/src/loader.rs index 43b0cabfe89f40..5e3b2e69ace65b 100644 --- a/crates/bevy_gltf/src/loader.rs +++ b/crates/bevy_gltf/src/loader.rs @@ -143,6 +143,7 @@ async fn load_gltf<'a, 'b>( } else { let len = mesh.count_vertices(); let uvs = vec![[0.0, 0.0]; len]; + bevy_log::warn!("missing `TEXCOORD_0` vertex attribute, loading zeroed out UVs"); mesh.set_attribute(Mesh::ATTRIBUTE_UV_0, uvs); }