From dc45e44784734e5addb88604c3244e414276d906 Mon Sep 17 00:00:00 2001 From: Jakob Hellermann Date: Tue, 13 Apr 2021 11:18:26 +0200 Subject: [PATCH] add warning log --- crates/bevy_gltf/Cargo.toml | 1 + crates/bevy_gltf/src/loader.rs | 1 + 2 files changed, 2 insertions(+) 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); }