From cc639fcd6da26f3cde9e9570de53a85c2bdfccb9 Mon Sep 17 00:00:00 2001 From: nds Date: Fri, 13 Feb 2015 19:08:38 +0300 Subject: [PATCH] Issue #394 Undo-ing a Sketch element A correction to visualize constraints created by preselection by clicking on a button outside the view. --- src/PartSet/PartSet_Module.cpp | 3 +++ src/PartSet/PartSet_SketcherMgr.h | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) 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*); -- 2.39.2