Hotfix: Console spam when animation retargeting is not running (#40)

This PR eliminates the console spam when a scene is loaded without an
animation retargeting source.
This commit is contained in:
Danny McGee
2024-02-09 14:26:36 -05:00
committed by GitHub
parent a5aeff7a3a
commit 32a8e80aa2
+2 -6
View File
@@ -40,12 +40,8 @@ fn copy_pose(
mut q_xforms: Query<&mut Transform>,
q_world_xforms: Query<&GlobalTransform>,
) {
let src_root = match q_src_root.get_single() {
Ok(src_root) => src_root,
Err(err) => {
error!("{err}");
return;
}
let Ok(src_root) = q_src_root.get_single() else {
return;
};
let src_height = match q_skel_height.get(src_root) {