Salome HOME
projects
/
modules
/
shaper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
beacffd
)
Make comment attribute for parameter not obligatory.
author
dbv
<dbv@opencascade.com>
Tue, 19 Apr 2016 08:27:31 +0000
(11:27 +0300)
committer
dbv
<dbv@opencascade.com>
Tue, 19 Apr 2016 08:27:31 +0000
(11:27 +0300)
src/ParametersPlugin/ParametersPlugin_Parameter.cpp
patch
|
blob
|
history
diff --git
a/src/ParametersPlugin/ParametersPlugin_Parameter.cpp
b/src/ParametersPlugin/ParametersPlugin_Parameter.cpp
index 949e14c8568b94480db1d7602a3157fb4f381fac..1df9618d48defa7ce64841c2bda9019f1c905af5 100644
(file)
--- 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);