]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
refs #80 - Sketch base GUI: create/draw point, circle and arc
authornds <natalia.donis@opencascade.com>
Wed, 25 Jun 2014 17:00:46 +0000 (21:00 +0400)
committernds <natalia.donis@opencascade.com>
Wed, 25 Jun 2014 17:00:46 +0000 (21:00 +0400)
1. Comment about OCC bug for edit constraint objects after their selection(bug is 25034).

src/PartSet/PartSet_OperationSketch.cpp

index 9336b634a4450a117978634232d0a9200d43367a..dfe2fe85c6cd5249a673be88829cf0ac2e238c07 100644 (file)
@@ -93,7 +93,7 @@ void PartSet_OperationSketch::mousePressed(QMouseEvent* theEvent, Handle_V3d_Vie
     if (theHighlighted.size() == 1) {
       FeaturePtr aFeature = theHighlighted.front().feature();
       if (aFeature) {
-        std::string anOperationType = getOperationType(aFeature);
+        std::string anOperationType = PartSet_OperationFeatureEdit::Type();
         if (theSelected.size() > 1)
           anOperationType = PartSet_OperationFeatureEditMulti::Type();
         restartOperation(anOperationType, aFeature);
@@ -119,7 +119,7 @@ void PartSet_OperationSketch::mouseReleased(QMouseEvent* theEvent, Handle_V3d_Vi
     if (theSelected.size() == 1) {
       FeaturePtr aFeature = theSelected.front().feature();
       if (aFeature)
-        restartOperation(getOperationType(aFeature), aFeature);
+        restartOperation(PartSet_OperationFeatureEdit::Type(), aFeature);
     }
   }
 }
@@ -245,8 +245,3 @@ void PartSet_OperationSketch::setSketchPlane(const TopoDS_Shape& theShape)
   emit closeLocalContext();
   emit planeSelected(aDir->x(), aDir->y(), aDir->z());
 }
-
-std::string PartSet_OperationSketch::getOperationType(FeaturePtr theFeature)
-{
-  return PartSet_OperationFeatureEdit::Type();
-}