Team Fortress 2 Source Code as on 22/4/2020
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

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #include "cbase.h"
  7. #include "bone_accessor.h"
  8. #if defined( CLIENT_DLL ) && defined( _DEBUG )
  9. void CBoneAccessor::SanityCheckBone( int iBone, bool bReadable ) const
  10. {
  11. if ( m_pAnimating )
  12. {
  13. CStudioHdr *pHdr = m_pAnimating->GetModelPtr();
  14. if ( pHdr )
  15. {
  16. mstudiobone_t *pBone = pHdr->pBone( iBone );
  17. if ( bReadable )
  18. {
  19. AssertOnce( pBone->flags & m_ReadableBones );
  20. }
  21. else
  22. {
  23. AssertOnce( pBone->flags & m_WritableBones );
  24. }
  25. }
  26. }
  27. }
  28. #endif