From 18202302b8b37d58dd880c58dafe7520e4ae04da Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 8 Apr 2015 18:36:04 +0300 Subject: [PATCH] Set constraint shown on start of constraint creation --- src/PartSet/PartSet_SketcherMgr.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/PartSet/PartSet_SketcherMgr.cpp b/src/PartSet/PartSet_SketcherMgr.cpp index e404a2f41..40578fa8a 100644 --- a/src/PartSet/PartSet_SketcherMgr.cpp +++ b/src/PartSet/PartSet_SketcherMgr.cpp @@ -699,6 +699,7 @@ void PartSet_SketcherMgr::startSketch(ModuleBase_Operation* theOperation) void PartSet_SketcherMgr::stopSketch(ModuleBase_Operation* theOperation) { myIsMouseOverWindow = false; + myIsConstraintsShown = true; XGUI_ModuleConnector* aConnector = dynamic_cast(myModule->workshop()); XGUI_Displayer* aDisplayer = aConnector->workshop()->displayer(); @@ -742,8 +743,12 @@ void PartSet_SketcherMgr::stopSketch(ModuleBase_Operation* theOperation) aDisplayer->updateViewer(); } -void PartSet_SketcherMgr::startNestedSketch(ModuleBase_Operation* ) +void PartSet_SketcherMgr::startNestedSketch(ModuleBase_Operation* theOperation) { + if (constraintsIdList().contains(theOperation->id())) { + // Show constraints if a constraint was created + onShowConstraintsToggle(true); + } connectToPropertyPanel(true); } @@ -759,10 +764,6 @@ void PartSet_SketcherMgr::commitNestedSketch(ModuleBase_Operation* theOperation) if (isNestedCreateOperation(theOperation)) visualizeFeature(theOperation, true); - if (constraintsIdList().contains(theOperation->id())) { - // Show constraints if a constraint was created - onShowConstraintsToggle(true); - } } bool PartSet_SketcherMgr::canUndo() const -- 2.39.2