From: nds Date: Fri, 13 Feb 2015 16:08:38 +0000 (+0300) Subject: Issue #394 Undo-ing a Sketch element X-Git-Tag: V_1.1.0~188^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cc639fcd6da26f3cde9e9570de53a85c2bdfccb9;p=modules%2Fshaper.git Issue #394 Undo-ing a Sketch element A correction to visualize constraints created by preselection by clicking on a button outside the view. --- diff --git a/src/PartSet/PartSet_Module.cpp b/src/PartSet/PartSet_Module.cpp index 60d6768cf..2e61cf223 100644 --- a/src/PartSet/PartSet_Module.cpp +++ b/src/PartSet/PartSet_Module.cpp @@ -390,6 +390,9 @@ void PartSet_Module::onOperationActivatedByPreselection() // Set final definitions if they are necessary //propertyPanelDefined(aOperation); + // the sketch manager should return the true state in canBeDisplayed, so it is correct + // to switch the property panel value changed flag for this + mySketchMgr->onValuesChangedInPropertyPanel(); /// Commit sketcher operations automatically aOperation->commit(); } diff --git a/src/PartSet/PartSet_SketcherMgr.h b/src/PartSet/PartSet_SketcherMgr.h index 8a0967b5e..a4a0246d7 100644 --- a/src/PartSet/PartSet_SketcherMgr.h +++ b/src/PartSet/PartSet_SketcherMgr.h @@ -128,6 +128,8 @@ public slots: /// Process sketch plane selected event void onPlaneSelected(const std::shared_ptr& thePln); + /// Listens the value changed signal and display the current operation feature + void onValuesChangedInPropertyPanel(); private slots: /// Process the enter mouse to the view port. If the current operation is a create of @@ -137,7 +139,6 @@ private slots: /// a nested sketch feature, it hides the feature in the viewer void onLeaveViewPort(); - void onValuesChangedInPropertyPanel(); void onMousePressed(ModuleBase_IViewWindow*, QMouseEvent*); void onMouseReleased(ModuleBase_IViewWindow*, QMouseEvent*); void onMouseMoved(ModuleBase_IViewWindow*, QMouseEvent*);