fix CalcModelFrame/SetBone/GetBone/SetAnimation not grabbing smf from modeldata for decoupled anims

This commit is contained in:
Ricardo Luís Vaz Silva 2025-05-10 18:21:21 -03:00 committed by Nash Muhandes
commit 4bdc3ee28d
2 changed files with 11 additions and 7 deletions

View file

@ -384,7 +384,7 @@ CalcModelFrameInfo CalcModelFrame(FLevelLocals *Level, const FSpriteModelFrame *
if(is_decoupled)
{
smfNext = smf = &BaseSpriteModelFrames[actor->GetClass()];
smfNext = smf = &BaseSpriteModelFrames[(data != nullptr && data->modelDef != nullptr) ? data->modelDef : actor->GetClass()];
if(data && !(data->curAnim.flags & MODELANIM_NONE))
{
calcFrames(data->curAnim, tic, decoupled_frame, inter);