From 972a727f1e22bf7eaa633f6af070617a0ee1688e Mon Sep 17 00:00:00 2001 From: Robert Beckebans Date: Mon, 13 Mar 2023 19:25:30 +0100 Subject: [PATCH] Changed animated glTF2 models to be cached like md5 so model overlays work on them --- neo/renderer/Model_gltf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neo/renderer/Model_gltf.cpp b/neo/renderer/Model_gltf.cpp index 11643417..6c83a135 100644 --- a/neo/renderer/Model_gltf.cpp +++ b/neo/renderer/Model_gltf.cpp @@ -612,7 +612,7 @@ bool idRenderModelGLTF::LoadBinaryModel( idFile* file, const ID_TIME_T sourceTim } SIMD_INIT_LAST_JOINT( invertedDefaultPose.Ptr(), md5joints.Num() ); - model_state = hasAnimations ? DM_CONTINUOUS : DM_STATIC; + model_state = hasAnimations ? DM_CACHED : DM_STATIC; lastMeshFromFile = this; data = nullptr;