char const *IFaceposerModels::GetActorNameForModel( int modelindex ) { CFacePoserModel *m = GetEntry( modelindex ); if ( !m ) return ""; return m->GetActorName(); }
StudioModel *IFaceposerModels::GetModelForActor( char const *actorname ) { int c = Count(); for ( int i = 0; i < c; i++ ) { CFacePoserModel *m = GetEntry( i ); if ( !m ) continue; if ( !stricmp( m->GetActorName(), actorname ) ) return m->GetModel(); } return NULL; }