{
data()->addAttribute(VARIABLE_ID(), ModelAPI_AttributeString::typeId());
data()->addAttribute(EXPRESSION_ID(), ModelAPI_AttributeString::typeId());
+ data()->addAttribute(COMMENT_ID(), ModelAPI_AttributeString::typeId());
data()->addAttribute(EXPRESSION_ERROR_ID(), ModelAPI_AttributeString::typeId());
data()->string(EXPRESSION_ERROR_ID())->setIsArgument(false);
// Currently there is no way to get parent document, so we get PartSet for all.
DocumentPtr aDocument = document();
if (data()->name() == aVariableName) {
- if (aDocument = ModelAPI_Session::get()->moduleDocument())
+ if (aDocument == ModelAPI_Session::get()->moduleDocument())
continue;
aDocument = ModelAPI_Session::get()->moduleDocument();
}
bool ParametersPlugin_Parameter::isPreviewNeeded() const
{
- return false;
+ return true;
}