]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
It was impossible to select another face of the same object. Fixed.
authorvsv <vitaly.smetannikov@opencascade.com>
Wed, 5 Nov 2014 15:06:47 +0000 (18:06 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Wed, 5 Nov 2014 15:06:47 +0000 (18:06 +0300)
src/ModuleBase/ModuleBase_WidgetShapeSelector.cpp

index c813f05e5b59ef7ca1cda200f19344f2870c02fe..4a53eb0438d730b3671190346966dee17abb413d 100644 (file)
@@ -187,9 +187,7 @@ void ModuleBase_WidgetShapeSelector::onSelectionChanged()
     ObjectPtr aObject = aObjects.first();
     if ((!mySelectedObject) && (!aObject))
       return;
-    // Check that object is not already selected
-    if (mySelectedObject && aObject && mySelectedObject->isSame(aObject))
-      return;
+
     // Check that the selected object is result (others can not be accepted)
     ResultPtr aRes = boost::dynamic_pointer_cast<ModelAPI_Result>(aObject);
     if (!aRes)
@@ -243,8 +241,6 @@ void ModuleBase_WidgetShapeSelector::onSelectionChanged()
 //********************************************************************
 void ModuleBase_WidgetShapeSelector::setObject(ObjectPtr theObj, boost::shared_ptr<GeomAPI_Shape> theShape)
 {
-  if (mySelectedObject == theObj)
-    return;
   mySelectedObject = theObj;
   myShape = theShape;
   if (mySelectedObject) {