]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Set constraint shown on start of constraint creation
authorvsv <vitaly.smetannikov@opencascade.com>
Wed, 8 Apr 2015 15:36:04 +0000 (18:36 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Wed, 8 Apr 2015 15:36:04 +0000 (18:36 +0300)
src/PartSet/PartSet_SketcherMgr.cpp

index e404a2f4126c6cd75a3b800fa8dc73c6969e85fd..40578fa8ad51a528d185926d14aefe0734784c9a 100644 (file)
@@ -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<XGUI_ModuleConnector*>(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