You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
673 B
34 lines
673 B
//========= 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 |
|
|
|
|