From: nds Date: Wed, 25 Jun 2014 17:00:46 +0000 (+0400) Subject: refs #80 - Sketch base GUI: create/draw point, circle and arc X-Git-Tag: V_0.4.4~231 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e23092827e2c54dae1094aacdbc46343c69a028b;p=modules%2Fshaper.git refs #80 - Sketch base GUI: create/draw point, circle and arc 1. Comment about OCC bug for edit constraint objects after their selection(bug is 25034). --- diff --git a/src/PartSet/PartSet_OperationSketch.cpp b/src/PartSet/PartSet_OperationSketch.cpp index 9336b634a..dfe2fe85c 100644 --- a/src/PartSet/PartSet_OperationSketch.cpp +++ b/src/PartSet/PartSet_OperationSketch.cpp @@ -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(); -}