]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/ProcessObject.cxx
Series reader added.
[cpPlugins.git] / lib / cpPlugins / Interface / ProcessObject.cxx
index 96f6edea124e15f87c7cdea32ecfdd6dc4011f05..f2499c212f1e28cc05e067a3f451c3309e96f8c8 100644 (file)
@@ -94,15 +94,20 @@ std::string cpPlugins::Interface::ProcessObject::
 Update( )
 {
   // Force upstream updates
-  for( unsigned int idx = 0; idx < this->m_Inputs.size( ); ++idx )
-    this->m_Inputs[ idx ]->GetSource( )->Update( );
+  std::string r = "";
+  for( unsigned int i = 0; i < this->m_Inputs.size( ) && r == ""; ++i )
+    r = this->m_Inputs[ i ]->GetSource( )->Update( );
 
   // Current update
-  std::string ret = this->_GenerateData( );
-  this->m_OutputsDisconnected = false;
+  if( r == "" )
+  {
+    r = this->_GenerateData( );
+    this->m_OutputsDisconnected = false;
+
+  } // fi
 
   // Return error description, if any
-  return( ret );
+  return( r );
 }
 
 // -------------------------------------------------------------------------