From e23092827e2c54dae1094aacdbc46343c69a028b Mon Sep 17 00:00:00 2001 From: nds Date: Wed, 25 Jun 2014 21:00:46 +0400 Subject: [PATCH] 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). --- src/PartSet/PartSet_OperationSketch.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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(); -} -- 2.39.2