From 46cc85069670e90749c8f64d184539bb3fde6373 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sun, 23 Feb 2025 23:44:40 +0100 Subject: debug bone mapping --- world/src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/world/src/main.rs b/world/src/main.rs index 66c2a91..9222b3e 100644 --- a/world/src/main.rs +++ b/world/src/main.rs @@ -414,11 +414,14 @@ fn main() -> Result<()> { }; let anim_node_index = n.index(); if let Some(scene_arm_index) = joint_name_to_arm_index.get(&vrm_name) { + debug!( + "mapping {name:?} (node={}) -> {vrm_name:?} (bone={})", + anim_node_index, scene_arm_index + ); anim_joint_index_to_arm_index.insert(anim_node_index, *scene_arm_index); } } } - for a in gltf.animations() { prefab.animation.push(import_animation( a, -- cgit v1.2.3-70-g09d2