Client: update viewmodel bone count directly after switching models, needed for getting the right attachment positions

This commit is contained in:
Marco Cawthorne 2023-10-13 08:22:57 -07:00
parent ab9d66b2e4
commit 81a498d49e
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
1 changed files with 4 additions and 0 deletions

View File

@ -197,6 +197,10 @@ View_DrawViewModel(void)
ROLL_BACK(pl.weapontime)
ROLL_BACK(pl.weaponframe)
}
NSRenderableEntity viewModel = (NSRenderableEntity)pSeat->m_eViewModelL;
viewModel._UpdateBoneCount();
viewModel = (NSRenderableEntity)pSeat->m_eViewModel;
viewModel._UpdateBoneCount();
}
float fBaseTime2 = m_eViewModel.frame1time;