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++)