From: dbv Date: Tue, 19 Apr 2016 08:27:31 +0000 (+0300) Subject: Make comment attribute for parameter not obligatory. X-Git-Tag: V_2.3.0~192 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cc6b58afa7c49d523ffc26a11dca2a4679dd8d22;p=modules%2Fshaper.git Make comment attribute for parameter not obligatory. --- diff --git a/src/ParametersPlugin/ParametersPlugin_Parameter.cpp b/src/ParametersPlugin/ParametersPlugin_Parameter.cpp index 949e14c85..1df9618d4 100644 --- a/src/ParametersPlugin/ParametersPlugin_Parameter.cpp +++ b/src/ParametersPlugin/ParametersPlugin_Parameter.cpp @@ -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);