Menu-VGUI: Search for .vvm models alongside .mdl files in the modelviewer

This commit is contained in:
Marco Cawthorne 2022-06-02 14:36:44 -07:00
parent d303ef9741
commit 1dab05fbd3
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
1 changed files with 2 additions and 2 deletions

View File

@ -102,7 +102,7 @@ void UI_ModelViewer_Show ( void )
if ( !initialized ) {
initialized = TRUE;
eModel = spawn();
UI_ModelViewer_SetModel( "models/player.mdl" );
UI_ModelViewer_SetModel( "models/error.vvm" );
AngleVectors( viewModel.Get3DAngles() );
viewModel.Set3DPos( v_forward * -vecDistance[0] + v_right * vecDistance[1] + v_up * vecDistance[2] );
}
@ -294,7 +294,7 @@ void UI_ModelViewer_Show ( void )
btnSeqPrev.SetTitle( "<<" );
btnSeqPrev.SetFunc( UI_ModelViewer_SetFrameM );
searchhandle shModels = search_begin( "models/*.mdl", SEARCH_NAMESORT, TRUE );
searchhandle shModels = search_begin( "models/*.mdl:models/*.vvm", SEARCH_NAMESORT | SEARCH_MULTISEARCH, TRUE );
lstModels = spawn( CUIList );
lstModels.SetItemCount( search_getsize( shModels ) );
lstModels.CallOnScroll( ModelViewer_ScrollUpdate );