Salome HOME
Optimized algo for PlayGround
[modules/yacs.git] / src / yacsloader / remoteParsers.hxx
index 6db9b35867246c556b0340e85e7c157c56c2a490..47ea6897a3c84d9fe0ffa87c0b7d35e191b8a183 100644 (file)
@@ -61,6 +61,7 @@ struct remotetypeParser:public inlinetypeParser<T>
       fnode->setScript(f._code);
       fnode->setFname(f._name);
       fnode->setExecutionMode("remote");
+      if (this->_weight>0)fnode->setWeight(this->_weight);
       this->_node=fnode;
     }
 
@@ -71,6 +72,7 @@ struct remotetypeParser:public inlinetypeParser<T>
       node=theRuntime->createScriptNode(this->_kind,this->_name);
       node->setScript(f._code);
       node->setExecutionMode("remote");
+      if (this->_weight>0)node->setWeight(this->_weight);
       this->_node=node;
     }