7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-19 00:21:36 +00:00

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

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
{