]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Plugins/BasicFilters/AppendMeshesFilter.cxx
...
[cpPlugins.git] / lib / cpPlugins / Plugins / BasicFilters / AppendMeshesFilter.cxx
index 8ea415453b735ac0ea1845e80c7f8be15f68069b..9cfc8bed6505def49b5ce0316d09830b4d882626 100644 (file)
@@ -8,8 +8,8 @@ cpPlugins::BasicFilters::AppendMeshesFilter::
 AppendMeshesFilter( )
   : Superclass( )
 {
-  this->_AddInput( "Input0", true );
-  this->_AddInput( "Input1", true );
+  this->_AddInput( "Input0" );
+  this->_AddInput( "Input1" );
   this->_AddOutput< cpPlugins::Interface::Mesh >( "Output" );
 }
 
@@ -25,8 +25,6 @@ _GenerateData( )
 {
   auto m0 = this->GetInputData< cpPlugins::Interface::Mesh >( "Input0" );
   auto m1 = this->GetInputData< cpPlugins::Interface::Mesh >( "Input1" );
-  if( m0 == NULL || m1 == NULL )
-    return( "AppendMeshesFilter: No input meshes." );
 
   auto filter = this->_CreateVTK< vtkAppendPolyData >( );
   filter->AddInputData( m0->GetVTK< vtkPolyData >( ) );