]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Plugins/IO/MeshWriter.cxx
...
[cpPlugins.git] / lib / cpPlugins / Plugins / IO / MeshWriter.cxx
index 46f983309100d80414c2a93eda2d348031c43ea2..ac20473985e79ed484a45924ef30c9d515bffc86 100644 (file)
@@ -10,7 +10,7 @@ cpPlugins::IO::MeshWriter::
 MeshWriter( )
   : Superclass( )
 {
-  this->_AddInput( "Input", true );
+  this->_AddInput( "Input" );
   this->m_Parameters->ConfigureAsSaveFileName( "FileName" );
   this->m_Parameters->SetAcceptedFileExtensions(
     "FileName",
@@ -29,8 +29,6 @@ std::string cpPlugins::IO::MeshWriter::
 _GenerateData( )
 {
   auto mesh = this->GetInputData< cpPlugins::Interface::Mesh >( "Input" );
-  if( mesh == NULL )
-    return( "MeshWriter: No input mesh." );
   vtkPolyData* i = mesh->GetVTK< vtkPolyData >( );
   if( i == NULL )
     return( "MeshWriter: No suitable input." );