]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1195: Fix of Show constraint toggle.
authorvsv <vitaly.smetannikov@opencascade.com>
Sat, 26 Dec 2015 13:08:55 +0000 (16:08 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Sat, 26 Dec 2015 13:08:55 +0000 (16:08 +0300)
src/PartSet/PartSet_Module.cpp

index fb633f631f74732dd83902a51aa880447962a1cf..93a81075085ae3b0df0e3d953225b9656e54b8ed 100755 (executable)
@@ -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);