Replace crash path in vrml1_faceset with pink!
This commit is contained in:
parent
9695717a46
commit
22aa9132a3
|
@ -491,12 +491,7 @@ SGNODE* WRL1FACESET::TranslateToSG( SGNODE* aParent, WRL1STATUS* sp )
|
||||||
|
|
||||||
if( matIndex.empty() )
|
if( matIndex.empty() )
|
||||||
{
|
{
|
||||||
int ic = coordIndex[iCoord];
|
pc1 = SGCOLOR( 1.0f, 0.41f, 0.705f ); //pink to indicate no material
|
||||||
|
|
||||||
if( ic >= (int)matSize )
|
|
||||||
m_current.mat->GetColor( &pc1, matIndex.back() );
|
|
||||||
else
|
|
||||||
m_current.mat->GetColor( &pc1, matIndex[ic] );
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue