From a4341fcaef4a0dc45d1f19f9f7b3eb14f3465e76 Mon Sep 17 00:00:00 2001 From: MalekiRe Date: Thu, 19 Sep 2024 17:30:12 -0700 Subject: [PATCH] fixed springbones --- crates/bevy_vrm/src/extensions/mod.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/bevy_vrm/src/extensions/mod.rs b/crates/bevy_vrm/src/extensions/mod.rs index d7a66af..22c2d19 100644 --- a/crates/bevy_vrm/src/extensions/mod.rs +++ b/crates/bevy_vrm/src/extensions/mod.rs @@ -358,10 +358,14 @@ fn add_springbone_logic_state( let mut next_bone = None; - if let Some(c) = child.iter().next() { + for c in child.iter() { next_bone.replace(*c); break; } + /*if let Some(c) = child.iter().next() { + next_bone.replace(*c); + break; + }*/ let next_bone = match next_bone { None => continue,