From 8aff9afd9b21eb760ab624db8933eb49e0f601a1 Mon Sep 17 00:00:00 2001 From: Danny McGee Date: Thu, 18 Jan 2024 20:21:50 -0500 Subject: [PATCH] Skip unnecessary computations --- studio/src/bvh/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/studio/src/bvh/mod.rs b/studio/src/bvh/mod.rs index 3c6c080..3a10b2b 100644 --- a/studio/src/bvh/mod.rs +++ b/studio/src/bvh/mod.rs @@ -245,8 +245,7 @@ fn retarget_bvh( local_mat.matrix3 = local_mat.matrix3.orthonormalize(); // [psuedo] target_xform.rotation = local_mat.rotation; - let (_, rotation, _) = local_mat.to_scale_rotation_translation(); - target_xform.rotation = rotation; + target_xform.rotation = Quat::from_affine3(&local_mat); } }