Salome HOME
Issue #1664 In the Sketcher, add the function Split a segment - correction of constra...
[modules/shaper.git] / src / FeaturesPlugin / FeaturesPlugin_Group.cpp
index 98c6266ef83756dc29e10aac3e2b208c5ceebb08..182a1d74c0f16da727629969d45c136c016950ef 100644 (file)
@@ -28,7 +28,7 @@ void FeaturesPlugin_Group::initAttributes()
 
 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);
   }