Skip to content

Commit

Permalink
fix #449
Browse files Browse the repository at this point in the history
  • Loading branch information
hzqst committed Jul 29, 2024
1 parent e16978f commit aadebfc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Plugins/BulletPhysics/exportfuncs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,13 @@ __forceinline int StudioDrawModel_Template(CallType pfnDrawModel, int flags, voi
}
else
{
//model changed ?
if (ragdoll->m_model != model)
{
gPhysicsManager.RemoveRagdoll(entindex);
return pfnDrawModel(pthis, 0, flags);
}

has_ragdoll:

int iActivityType = StudioGetSequenceActivityType(model, &(*currententity)->curstate);
Expand Down

0 comments on commit aadebfc

Please sign in to comment.