Salome HOME
setDisplayed has to be called in order to synchronize internal state of the object
[modules/shaper.git] / src / Model / Model_AttributeSelection.cpp
index 6061cc03867a390eddd51ef6f0d11ad8479c7fb1..af2ca84621c2ea506c2d2358e5b67fc01ac2c24d 100644 (file)
@@ -178,7 +178,7 @@ bool Model_AttributeSelection::isInitialized()
           return false;
       }
       if (aSelLab.IsAttribute(kCONSTUCTION_SIMPLE_REF_ID)) { // it is just reference to construction, nothing is in value
-          return false;
+          return true;
       }
 
       Handle(TNaming_NamedShape) aSelection;
@@ -449,9 +449,11 @@ void Model_AttributeSelection::selectBody(
   }
   TopoDS_Shape aNewShape = theSubShape ? theSubShape->impl<TopoDS_Shape>() : aContext;
   /// fix for issue 411: result modified shapes must not participate in this selection mechanism
+  /*
   FeaturePtr aFeatureOwner = std::dynamic_pointer_cast<ModelAPI_Feature>(owner());
   if (aFeatureOwner.get())
     aFeatureOwner->eraseResults();
+    */
   if (!aContext.IsNull()) {
     aSel.Select(aNewShape, aContext); 
   }