From 440b292c39162284a447b34d3a692143af9fbc87 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Thu, 30 Oct 2025 17:21:22 -0700 Subject: - Replace SceneCamera with Camera. - Remove backpointer from scene types to node to decouple underlying types from the scene graph. --- src/scene/animation.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/scene/animation.c') diff --git a/src/scene/animation.c b/src/scene/animation.c index 601c400..a498961 100644 --- a/src/scene/animation.c +++ b/src/scene/animation.c @@ -204,10 +204,6 @@ void gfx_destroy_anima(Anima** anima) { mem_free_animation(&animation); } - if ((*anima)->parent.val) { - gfx_del_node((*anima)->parent); - } - mem_free_anima(anima); } } @@ -450,10 +446,8 @@ void gfx_update_animation(Anima* anima, R t) { // which we have constructed to be the common root of all skeletons. // // This procedure touches every joint exactly once. - SceneNode* root_node = mem_get_node(anima->parent); - // LOGD("Root: %u, child: %u", anima->parent.val, root->child.val); - const mat4 root_global_transform = gfx_get_node_global_transform(root_node); - const mat4 root_inv_global_transform = mat4_inverse(root_global_transform); + const mat4 root_global_transform = mat4_id(); + const mat4 root_inv_global_transform = mat4_id(); Joint* root_joint = get_anima_root_joint(anima); compute_joint_matrices_rec( -- cgit v1.2.3