X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPlugins%2FPlugins%2FIO%2FMeshWriter.cxx;h=feb05ad5e40f5064ef09224f59fcc612be05efa3;hb=273699a71c538630c162de031f0c95014319311d;hp=e45367d79676e80209f6527dfb928296ae6a1b35;hpb=e992c2468610352a34187d9180e2e8f3fd3a6e68;p=cpPlugins.git diff --git a/lib/cpPlugins/Plugins/IO/MeshWriter.cxx b/lib/cpPlugins/Plugins/IO/MeshWriter.cxx index e45367d..feb05ad 100644 --- a/lib/cpPlugins/Plugins/IO/MeshWriter.cxx +++ b/lib/cpPlugins/Plugins/IO/MeshWriter.cxx @@ -51,7 +51,7 @@ MeshWriter( ) : Superclass( ) { this->_AddInput( "Input" ); - this->m_Parameters->ConfigureAsFileName( "FileName" ); + this->m_Parameters->ConfigureAsSaveFileName( "FileName" ); } // ------------------------------------------------------------------------- @@ -71,7 +71,7 @@ _GenerateData( ) vtkPolyData* i = mesh->GetVTK< vtkPolyData >( ); if( i == NULL ) return( "MeshWriter: No suitable input." ); - std::string fname = this->m_Parameters->GetFileName( "FileName" ); + std::string fname = this->m_Parameters->GetSaveFileName( "FileName" ); vtkPolyDataWriter* pdw = this->_CreateVTK< vtkPolyDataWriter >( ); pdw->SetInputData( i );