]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Roll back integration that makes solids of compsolids impossible to select
authormpv <mpv@opencascade.com>
Mon, 23 Nov 2015 06:04:00 +0000 (09:04 +0300)
committermpv <mpv@opencascade.com>
Mon, 23 Nov 2015 06:04:00 +0000 (09:04 +0300)
src/Model/Model_AttributeSelection.cpp

index 84d4c29741c0f72c2164c07bac7915cfb4d6e35b..9d375b2acdc85f72496f772c8943927a30ec7c64 100644 (file)
@@ -99,10 +99,6 @@ void Model_AttributeSelection::setValue(const ResultPtr& theContext,
   if (isOldShape) return; // shape is the same, so context is also unchanged
   // update the referenced object if needed
   if (!isOldContext) {
-    ResultCompSolidPtr anOwner = ModelAPI_Tools::compSolidOwner(theContext);
-    if (anOwner.get())
-      myRef.setValue(anOwner);
-    else
       myRef.setValue(theContext);
   }