From 8ae3ed1cc05feccdc0a133421511ba7a0ec76609 Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 5 Nov 2014 18:06:47 +0300 Subject: [PATCH] It was impossible to select another face of the same object. Fixed. --- src/ModuleBase/ModuleBase_WidgetShapeSelector.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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) { -- 2.39.2