From 4088275a0a2e226354c023220596387f7fbaa6f7 Mon Sep 17 00:00:00 2001 From: vsv Date: Sat, 26 Dec 2015 16:08:55 +0300 Subject: [PATCH] Issue #1195: Fix of Show constraint toggle. --- src/PartSet/PartSet_Module.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/PartSet/PartSet_Module.cpp b/src/PartSet/PartSet_Module.cpp index fb633f631..93a810750 100755 --- a/src/PartSet/PartSet_Module.cpp +++ b/src/PartSet/PartSet_Module.cpp @@ -638,9 +638,11 @@ void PartSet_Module::onFeatureTriggered() void PartSet_Module::launchOperation(const QString& theCmdId) { + if (myWorkshop->currentOperation() && + myWorkshop->currentOperation()->id().toStdString() == SketchPlugin_Sketch::ID()) + myHasConstraintShown = mySketchMgr->isConstraintsShown(); if (PartSet_SketcherMgr::constraintsIdList().contains(theCmdId)) { // Show constraints if a constraint was anOperation - myHasConstraintShown = mySketchMgr->isConstraintsShown(); mySketchMgr->onShowConstraintsToggle(true); } ModuleBase_IModule::launchOperation(theCmdId); -- 2.39.2