From: vsv Date: Wed, 5 Nov 2014 15:06:47 +0000 (+0300) Subject: It was impossible to select another face of the same object. Fixed. X-Git-Tag: V_0.5~37^2^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8ae3ed1cc05feccdc0a133421511ba7a0ec76609;p=modules%2Fshaper.git It was impossible to select another face of the same object. Fixed. --- diff --git a/src/ModuleBase/ModuleBase_WidgetShapeSelector.cpp b/src/ModuleBase/ModuleBase_WidgetShapeSelector.cpp index c813f05e5..4a53eb043 100644 --- a/src/ModuleBase/ModuleBase_WidgetShapeSelector.cpp +++ b/src/ModuleBase/ModuleBase_WidgetShapeSelector.cpp @@ -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(aObject); if (!aRes) @@ -243,8 +241,6 @@ void ModuleBase_WidgetShapeSelector::onSelectionChanged() //******************************************************************** void ModuleBase_WidgetShapeSelector::setObject(ObjectPtr theObj, boost::shared_ptr theShape) { - if (mySelectedObject == theObj) - return; mySelectedObject = theObj; myShape = theShape; if (mySelectedObject) {