]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Provide multi-edit
authorvsv <vitaly.smetannikov@opencascade.com>
Tue, 28 Oct 2014 12:28:18 +0000 (15:28 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Tue, 28 Oct 2014 12:28:18 +0000 (15:28 +0300)
src/PartSet/PartSet_OperationFeatureEditMulti.cpp

index d1ee29448d7b9e1d4a44a660c9a15830691faefc..0e37baa770fb33885c1986c6fb803bb46f19dc0e 100644 (file)
@@ -110,6 +110,9 @@ void PartSet_OperationFeatureEditMulti::mouseMoved(QMouseEvent* theEvent, Module
   Handle(V3d_View) aView = theViewer->activeView();
   gp_Pnt aPoint = PartSet_Tools::convertClickToPoint(theEvent->pos(), aView);
 
+  if (theViewer->isSelectionEnabled())
+    theViewer->enableSelection(false);
+
   //blockSelection(true);
   if (myCurPoint.myIsInitialized) {
     double aCurX, aCurY;
@@ -154,6 +157,8 @@ void PartSet_OperationFeatureEditMulti::mouseReleased(
       }
     }
   }
+  if (!theViewer->isSelectionEnabled())
+    theViewer->enableSelection(true);
 }
 
 void PartSet_OperationFeatureEditMulti::startOperation()