]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Make comment attribute for parameter not obligatory.
authordbv <dbv@opencascade.com>
Tue, 19 Apr 2016 08:27:31 +0000 (11:27 +0300)
committerdbv <dbv@opencascade.com>
Tue, 19 Apr 2016 08:27:31 +0000 (11:27 +0300)
src/ParametersPlugin/ParametersPlugin_Parameter.cpp

index 949e14c8568b94480db1d7602a3157fb4f381fac..1df9618d48defa7ce64841c2bda9019f1c905af5 100644 (file)
@@ -34,7 +34,9 @@ void ParametersPlugin_Parameter::initAttributes()
 {
   data()->addAttribute(VARIABLE_ID(), ModelAPI_AttributeString::typeId());
   data()->addAttribute(EXPRESSION_ID(), ModelAPI_AttributeString::typeId());
+
   data()->addAttribute(COMMENT_ID(), ModelAPI_AttributeString::typeId());
+  ModelAPI_Session::get()->validators()->registerNotObligatory(getKind(), COMMENT_ID());
 
   data()->addAttribute(EXPRESSION_ERROR_ID(), ModelAPI_AttributeString::typeId());
   data()->string(EXPRESSION_ERROR_ID())->setIsArgument(false);