mirror of
https://github.com/nillerusr/source-engine.git
synced 2024-12-24 07:06:50 +00:00
35 lines
673 B
C++
35 lines
673 B
C++
|
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||
|
//
|
||
|
// Purpose:
|
||
|
//
|
||
|
//=============================================================================//
|
||
|
|
||
|
#include "cbase.h"
|
||
|
#include "bone_accessor.h"
|
||
|
|
||
|
|
||
|
#if defined( CLIENT_DLL ) && defined( _DEBUG )
|
||
|
|
||
|
void CBoneAccessor::SanityCheckBone( int iBone, bool bReadable ) const
|
||
|
{
|
||
|
if ( m_pAnimating )
|
||
|
{
|
||
|
CStudioHdr *pHdr = m_pAnimating->GetModelPtr();
|
||
|
if ( pHdr )
|
||
|
{
|
||
|
mstudiobone_t *pBone = pHdr->pBone( iBone );
|
||
|
if ( bReadable )
|
||
|
{
|
||
|
AssertOnce( pBone->flags & m_ReadableBones );
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
AssertOnce( pBone->flags & m_WritableBones );
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
#endif
|
||
|
|