Clean up naming of plugin VRML test output

This commit is contained in:
Cirilo Bernardo 2016-01-02 14:04:28 +11:00
parent fad73f0e85
commit 012e0a2066
2 changed files with 8 additions and 2 deletions

View File

@ -299,7 +299,7 @@ SCENEGRAPH* Load( char const* aFileName )
if( data ) if( data )
{ {
wxFileName fn( aFileName ); wxFileName fn( aFileName );
wxString output = wxT( "z" ); wxString output = wxT( "_idf-" );
output.append( fn.GetName() ); output.append( fn.GetName() );
output.append( wxT(".wrl") ); output.append( wxT(".wrl") );
S3D::WriteVRML( output, true, (SGNODE*)(data), true, true ); S3D::WriteVRML( output, true, (SGNODE*)(data), true, true );

View File

@ -221,7 +221,13 @@ SCENEGRAPH* Load( char const* aFileName )
if( scene ) if( scene )
{ {
wxFileName fn( wxString::FromUTF8Unchecked( aFileName ) ); wxFileName fn( wxString::FromUTF8Unchecked( aFileName ) );
wxString output = wxT( "_" ); wxString output;
if( proc.GetVRMLType() == VRML_V1 )
output = wxT( "_vrml1-" );
else
output = wxT( "_vrml2-" );
output.append( fn.GetName() ); output.append( fn.GetName() );
output.append( wxT(".wrl") ); output.append( wxT(".wrl") );
S3D::WriteVRML( output, true, (SGNODE*)(scene), true, true ); S3D::WriteVRML( output, true, (SGNODE*)(scene), true, true );