]> Creatis software - creaVtk.git/blobdiff - bbtk_creaVtk_PKG/src/bbcreaVtkCutter.cxx
#3507 Undo and Redo Meshes
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkCutter.cxx
index 82651c6971d86dafb2feb110795b039d3f519fbc..0e4f85af50e1e4d59188d59209919b8b8d7c78b2 100644 (file)
@@ -33,7 +33,7 @@ void Cutter::Process()
   //  See example in:
   //  https://kitware.github.io/vtk-examples/site/Cxx/VisualizationAlgorithms/Cutter/
   
-    if (bbGetInputIn()!=NULL)
+    if ( (bbGetInputActive()==true) && (bbGetInputIn()!=NULL) )
     {
         vtkCutter *cutter;
         cutter = vtkCutter::New();
@@ -45,6 +45,7 @@ void Cutter::Process()
         bbSetOutputOut( NULL );
     }
 }
+
 //===== 
 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
 //===== 
@@ -53,6 +54,7 @@ void Cutter::bbUserSetDefaultValues()
 //  SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX 
 //    Here we initialize the input 'In' to 0
 //   bbSetInputIn(NULL);
+    bbSetInputActive( true );
     bbSetOutputOut( NULL );
 }
 //=====