void FeaturesPlugin_Group::initAttributes()
{
- //data()->addAttribute(FeaturesPlugin_Group::NAME_ID(), ModelAPI_AttributeString::type());
- data()->addAttribute(FeaturesPlugin_Group::LIST_ID(), ModelAPI_AttributeSelectionList::type());
+ //data()->addAttribute(FeaturesPlugin_Group::NAME_ID(), ModelAPI_AttributeString::typeId());
+ data()->addAttribute(FeaturesPlugin_Group::LIST_ID(), ModelAPI_AttributeSelectionList::typeId());
}
void FeaturesPlugin_Group::execute()
{
- if (results().empty()) { // just create result if not exists
+ if (results().empty() || firstResult()->isDisabled()) { // just create result if not exists
ResultPtr aGroup = document()->createGroup(data());
setResult(aGroup);
}