From 5f0bf8eda63d363101bbe2995cf8725893a9dd89 Mon Sep 17 00:00:00 2001 From: Shiny Metagross <30511800+ShinyMetagross@users.noreply.github.com> Date: Mon, 15 Aug 2022 14:44:41 -0700 Subject: [PATCH] Update models.cpp - Removed an unnecessary bool --- src/r_data/models.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/r_data/models.cpp b/src/r_data/models.cpp index 5b828efc6a..49842fbd92 100644 --- a/src/r_data/models.cpp +++ b/src/r_data/models.cpp @@ -354,7 +354,6 @@ void RenderFrameModels(FModelRenderer *renderer, FLevelLocals *Level, const FSpr bool attachments = smf->flags & MDL_MODELSAREATTACHMENTS; bool nextFrame = smfNext && modelframe != modelframenext; - bool hasExternAnimation = false; if (animationid >= 0) { @@ -362,11 +361,8 @@ void RenderFrameModels(FModelRenderer *renderer, FLevelLocals *Level, const FSpr animationData = animation->AttachAnimationData(); if(!attachments || boneData.Size() == 0) boneData = animation->CalculateBones(modelframe, nextFrame ? modelframenext : modelframe, nextFrame ? inter : 0.f, *animationData); - - hasExternAnimation = true; } - - if(!hasExternAnimation) boneData = mdl->CalculateBones(modelframe, nextFrame ? modelframenext : modelframe, nextFrame ? inter : 0.f, *animationData); + else boneData = mdl->CalculateBones(modelframe, nextFrame ? modelframenext : modelframe, nextFrame ? inter : 0.f, *animationData); if (smfNext && modelframe != modelframenext) mdl->RenderFrame(renderer, tex, modelframe, modelframenext, inter, translation, ssidp, boneData);