From f6a2999134cf411f09473a4aa1eaa1f5bcf8bbba Mon Sep 17 00:00:00 2001 From: Arceveti <73617174+Arceveti@users.noreply.github.com> Date: Wed, 20 Oct 2021 12:24:39 -0700 Subject: [PATCH] Fix geo_process_animated_part setting translation twice --- src/game/rendering_graph_node.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/game/rendering_graph_node.c b/src/game/rendering_graph_node.c index dd9a71226..722a3964b 100644 --- a/src/game/rendering_graph_node.c +++ b/src/game/rendering_graph_node.c @@ -672,9 +672,8 @@ void geo_process_background(struct GraphNodeBackground *node) { */ void geo_process_animated_part(struct GraphNodeAnimatedPart *node) { Vec3s rotation = { 0, 0, 0 }; - Vec3f translation = {node->translation[0], node->translation[1], node->translation[2]}; + Vec3f translation = { node->translation[0], node->translation[1], node->translation[2] }; - vec3f_set(translation, node->translation[0], node->translation[1], node->translation[2]); if (gCurrAnimType == ANIM_TYPE_TRANSLATION) { translation[0] += gCurrAnimData[retrieve_animation_index(gCurrAnimFrame, &gCurrAnimAttribute)] * gCurrAnimTranslationMultiplier; translation[1] += gCurrAnimData[retrieve_animation_index(gCurrAnimFrame, &gCurrAnimAttribute)] * gCurrAnimTranslationMultiplier; @@ -712,8 +711,8 @@ void geo_process_animated_part(struct GraphNodeAnimatedPart *node) { * Render an animated part that has an initial rotation value */ void geo_process_bone(struct GraphNodeBone *node) { - Vec3s rotation = {node->rotation[0], node->rotation[1], node->rotation[2] }; - Vec3f translation = {node->translation[0], node->translation[1], node->translation[2]}; + Vec3s rotation = { node->rotation[0], node->rotation[1], node->rotation[2] }; + Vec3f translation = { node->translation[0], node->translation[1], node->translation[2] }; if (gCurrAnimType == ANIM_TYPE_TRANSLATION) { translation[0] += gCurrAnimData[retrieve_animation_index(gCurrAnimFrame, &gCurrAnimAttribute)] * gCurrAnimTranslationMultiplier;