X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesPlugin%2FFeaturesPlugin_Group.cpp;h=182a1d74c0f16da727629969d45c136c016950ef;hb=fb54db5e1466b16dfc029c4a7364a67a9a6a8c24;hp=c5761b11e359722e64dc2757ca2ccc7528df4dc9;hpb=f9534de9210dc5bcc16e65040074a0a3ee295226;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/FeaturesPlugin_Group.cpp b/src/FeaturesPlugin/FeaturesPlugin_Group.cpp index c5761b11e..182a1d74c 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Group.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Group.cpp @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D --> + // File: FeaturesPlugin_Group.cpp // Created: 08 Oct 2014 // Author: Sergey BELASH @@ -20,13 +22,13 @@ FeaturesPlugin_Group::FeaturesPlugin_Group() 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); }