Salome HOME
Merge V9_dev branch into master
[modules/yacs.git] / src / yacsloader / remoteParsers.hxx
index 5eedc34111f7e470534b872af32a794e79992c2b..47ea6897a3c84d9fe0ffa87c0b7d35e191b8a183 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2006-2015  CEA/DEN, EDF R&D
+// Copyright (C) 2006-2016  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -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;
     }