Replace crash path in vrml1_faceset with pink!

This commit is contained in:
Marek Roszko 2021-02-01 20:13:31 -05:00
parent 9695717a46
commit 22aa9132a3
1 changed files with 1 additions and 6 deletions

View File

@ -491,12 +491,7 @@ SGNODE* WRL1FACESET::TranslateToSG( SGNODE* aParent, WRL1STATUS* sp )
if( matIndex.empty() )
{
int ic = coordIndex[iCoord];
if( ic >= (int)matSize )
m_current.mat->GetColor( &pc1, matIndex.back() );
else
m_current.mat->GetColor( &pc1, matIndex[ic] );
pc1 = SGCOLOR( 1.0f, 0.41f, 0.705f ); //pink to indicate no material
}
else
{