Salome HOME
Issue #2811: Update content of Object node on creation moment
[modules/shaper.git] / src / Selector / Selector_Modify.cpp
index f764e1d396706e71175e23b35f33bb218130fe1e..5ac20366add5f40cae96261222b68d69f2c3983a 100644 (file)
@@ -184,7 +184,13 @@ bool Selector_Modify::select(NCollection_List<Handle(TNaming_NamedShape)>& theMo
             return true;
           }
         }
+      } else if (aCommon.Extent() == 1) {
+        return true; // simple modification
       }
+      // weak naming between the common results
+      Selector_NExplode aNexp(aCommon);
+      myWeakIndex = aNexp.index(theValue);
+      return myWeakIndex != -1;
     }
     // weak naming case
     TopoDS_ListOfShape aCommon;