X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkBlackBox.cxx;h=04d146c6ca2780483e5171b71430655adca552c7;hb=0a7afaadd37a67878b1dfe9166c1c7abd867e53f;hp=d0e93b5c14ba13b8f28590dc20ab03c6a3da50b6;hpb=95d29d27866e787a059e50f4df2c3df34336fe75;p=bbtk.git diff --git a/kernel/src/bbtkBlackBox.cxx b/kernel/src/bbtkBlackBox.cxx index d0e93b5..04d146c 100644 --- a/kernel/src/bbtkBlackBox.cxx +++ b/kernel/src/bbtkBlackBox.cxx @@ -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 '"<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(\""