From cc6b58afa7c49d523ffc26a11dca2a4679dd8d22 Mon Sep 17 00:00:00 2001 From: dbv Date: Tue, 19 Apr 2016 11:27:31 +0300 Subject: [PATCH] Make comment attribute for parameter not obligatory. --- src/ParametersPlugin/ParametersPlugin_Parameter.cpp | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.39.2