//----------------------------------------------------------------------------- // Helper class to deal with floating point inputs //----------------------------------------------------------------------------- void CEntityMaterialProxy::OnBind( void *pRenderable ) { if( !pRenderable ) return; IClientRenderable *pRend = (IClientRenderable *)pRenderable; C_BaseEntity *pEnt = pRend->GetIClientUnknown()->GetBaseEntity(); if (pEnt) { OnBind(pEnt); } }
//----------------------------------------------------------------------------- // Helper class to deal with floating point inputs //----------------------------------------------------------------------------- void CEntityMaterialProxy::OnBind( void *pRenderable ) { if( !pRenderable ) return; IClientRenderable *pRend = ( IClientRenderable* )pRenderable; C_BaseEntity *pEnt = pRend->GetIClientUnknown()->GetBaseEntity(); if ( pEnt ) { OnBind( pEnt ); if ( ToolsEnabled() ) { ToolFramework_RecordMaterialParams( GetMaterial() ); } } }