diff --git a/src/r_data/models.cpp b/src/r_data/models.cpp index 8ed3e57f2c..b58dfaa479 100644 --- a/src/r_data/models.cpp +++ b/src/r_data/models.cpp @@ -820,6 +820,10 @@ static void ParseModelDefLump(int Lump) if (smf.modelIDs[index] != -1) { FModel *model = Models[smf.modelIDs[index]]; + if (smf.animationIDs[index] != -1) + { + model = Models[smf.animationIDs[index]]; + } smf.modelframes[index] = model->FindFrame(sc.String); if (smf.modelframes[index]==-1) sc.ScriptError("Unknown frame '%s' in %s", sc.String, type->TypeName.GetChars()); }