]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkBlackBox.cxx
* Viewer2D now works !!!
[bbtk.git] / kernel / src / bbtkBlackBox.cxx
index d0e93b5c14ba13b8f28590dc20ab03c6a3da50b6..04d146c6ca2780483e5171b71430655adca552c7 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkBlackBox.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/12/09 11:48:31 $
-  Version:   $Revision: 1.33 $
+  Date:      $Date: 2008/12/09 12:54:02 $
+  Version:   $Revision: 1.34 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -911,13 +911,8 @@ namespace bbtk
        bbtkError("no input called '"<<name<<"'");
       }
     i->second->SetConnection(c);
-
-    // Check the status of the from.output of c 
-    // to set the new status of the input
-    IOStatus s = MODIFIED;
-    if ( c->GetBlackBoxFrom()->bbGetOutputConnector(c->GetBlackBoxFromOutput()).GetStatus() == OUTOFDATE ) 
-      s = OUTOFDATE;
-    bbSetStatusAndPropagate(i->second,s);
+    // The input *MUST* be set OUTOFDATE to update its input on next execution
+    bbSetStatusAndPropagate(i->second,OUTOFDATE);
     
     bbtkDebugMessage("connection",2,
                        "<== BlackBox::bbConnectInput(\""