Salome HOME
An OutPort ExternConnected must be [re]linked at "CreateService" time
authorrahuel <rahuel@opencascade.com>
Wed, 7 Sep 2005 07:03:28 +0000 (07:03 +0000)
committerrahuel <rahuel@opencascade.com>
Wed, 7 Sep 2005 07:03:28 +0000 (07:03 +0000)
src/GraphBase/DataFlowBase_Graph.cxx

index a231ec8cda82bc4714894bdd1e9e28fc78c7cca3..5ffde09f68308b25c821c4ebb83805a38c690133 100644 (file)
@@ -2213,8 +2213,9 @@ bool GraphBase::Graph::CreateService() {
              << ") " << anOutPort->PortStatus() << " :" << endl ;
 //JR PAL8914 : OutPorts of LoopNodes may not be in the Service of the Graph
 //      if ( !anOutPort->IsGate() && anOutPort->IsNotConnected() && !aToNode->IsGOTONode() ) {
-      if ( !anOutPort->IsGate() && anOutPort->IsNotConnected() && !aToNode->IsGOTONode() &&
-        !aToNode->IsLoopNode() ) {
+      if ( !anOutPort->IsGate() && !aToNode->IsGOTONode() && !aToNode->IsLoopNode() &&
+//JR Debug : 06.09.2005 : recreate that link if the OutPort is ExternConnected !!!...
+           ( anOutPort->IsNotConnected() || anOutPort->IsExternConnected() ) ) {
         GraphBase::InPort *anInPort = GetChangeOutDataNodePort( anOutPort->NodePortName() ) ;
         if ( !AddLink( aToNode , anOutPort , this , anInPort ) ) {
           cdebug << "       --> " << Name() << "(" << anInPort->PortName()