From cc766311f784aa2a11f4856cdd276179d99a5ad5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Lu=C3=ADs=20Vaz=20Silva?= Date: Sun, 26 Jan 2025 17:37:56 -0300 Subject: [PATCH] =?UTF-8?q?upload=20bones=20=F0=9F=98=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/models/models_iqm.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/models/models_iqm.cpp b/src/common/models/models_iqm.cpp index a04633c4e..d22f293ae 100644 --- a/src/common/models/models_iqm.cpp +++ b/src/common/models/models_iqm.cpp @@ -7,6 +7,7 @@ #include "engineerrors.h" #include "dobject.h" #include "bonecomponents.h" +#include "v_video.h" IQMModel::IQMModel() { @@ -469,7 +470,7 @@ double IQMModel::FindFramerate(FName name) void IQMModel::RenderFrame(FModelRenderer* renderer, FGameTexture* skin, int frame1, int frame2, double inter, FTranslationID translation, const FTextureID* surfaceskinids, int boneStartPosition, void * act) { - renderer->SetupFrame(this, 0, 0, NumVertices, boneStartPosition); + renderer->SetupFrame(this, 0, 0, NumVertices, boneStartPosition >= 0 ? boneStartPosition : screen->mBones->UploadBones(boneData)); FGameTexture* lastSkin = nullptr; for (unsigned i = 0; i < Meshes.Size(); i++)