Fixed bugs in VRML/X3D parser log code

This commit is contained in:
Cirilo Bernardo 2016-02-23 13:37:35 +11:00
parent d2a13efc12
commit b0a26f32ef
2 changed files with 5 additions and 1 deletions

View File

@ -303,10 +303,14 @@ SGNODE* WRL1FACESET::TranslateToSG( SGNODE* aParent, WRL1STATUS* sp )
{
#if defined( DEBUG_VRML1 ) && ( DEBUG_VRML1 > 1 )
if( NULL == m_current.coord )
{
wxLogTrace( MASK_VRML, " * [INFO] bad model: no vertex set\n" );
}
if( NULL == m_current.mat )
{
wxLogTrace( MASK_VRML, " * [INFO] bad model: no material set\n" );
}
#endif
return NULL;

View File

@ -153,7 +153,7 @@ bool WRL2BOX::Read( WRLPROC& proc, WRL2BASE* aTopNode )
ostr << " * [INFO] invalid size at line " << line << ", column ";
ostr << column << "\n";
ostr << " * [INFO] file: '" << proc.GetFileName() << "'\n";
ostr << " * [INFO] message: '" << proc.GetError() << "';
ostr << " * [INFO] message: '" << proc.GetError() << "'";
wxLogTrace( MASK_VRML, "%s\n", ostr.str().c_str() );
} while( 0 );
#endif