Changed animated glTF2 models to be cached like md5 so model overlays work on them

This commit is contained in:
Robert Beckebans 2023-03-13 19:25:30 +01:00
parent d1c8425153
commit 972a727f1e

View file

@ -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;