Skip to content

Commit

Permalink
ignore numBones assert if we're mixing jk2/jka models
Browse files Browse the repository at this point in the history
  • Loading branch information
Razish committed Feb 18, 2024
1 parent 540edeb commit e55cdc9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion code/rd-vanilla/tr_ghoul2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3611,7 +3611,11 @@ qboolean R_LoadMDXM( model_t *mod, void *buffer, const char *mod_name, qboolean
#ifndef JK2_MODE
else
{
assert (tr.models[mdxm->animIndex]->mdxa->numBones == mdxm->numBones);
// let us mix JK2/JKA models and animations
if (tr.models[mdxm->animIndex]->mdxa->numBones != 53 && tr.models[mdxm->animIndex]->mdxa->numBones != 72 && mdxm->numBones != 53 &&
mdxm->numBones != 72) {
assert(tr.models[mdxm->animIndex]->mdxa->numBones == mdxm->numBones);
}
if (tr.models[mdxm->animIndex]->mdxa->numBones != mdxm->numBones)
{
if ( isAnOldModelFile )
Expand Down

0 comments on commit e55cdc9

Please sign in to comment.