X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_OperationSketch.cpp;h=331f7e63e24b2ea1b26a17e99d3870b7bf353cfc;hb=0b06415cbaab3da89567c28ea4a7ae6ecf50511b;hp=7bfddff3066104fa436db128714d63338039b724;hpb=61da4e89d2ec63daa429d304f928482a0e6fa0b7;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_OperationSketch.cpp b/src/PartSet/PartSet_OperationSketch.cpp index 7bfddff30..331f7e63e 100644 --- a/src/PartSet/PartSet_OperationSketch.cpp +++ b/src/PartSet/PartSet_OperationSketch.cpp @@ -76,7 +76,6 @@ void PartSet_OperationSketch::mousePressed(QMouseEvent* theEvent, ModuleBase_IVi std::string anOperationType = (aSelected.size() > 1) ? PartSet_OperationFeatureEditMulti::Type() : PartSet_OperationFeatureEdit::Type(); - //theViewer->enableSelection(false); restartOperation(anOperationType, aFeature); } } //else @@ -88,12 +87,13 @@ void PartSet_OperationSketch::mousePressed(QMouseEvent* theEvent, ModuleBase_IVi void PartSet_OperationSketch::selectionChanged(ModuleBase_ISelection* theSelection) { - if (hasSketchPlane()) + if (hasSketchPlane()) return; QList aSelected = theSelection->getSelected(); if (!aSelected.empty()) { ModuleBase_ViewerPrs aPrs = aSelected.first(); + // We have to select a plane before any operation const TopoDS_Shape& aShape = aPrs.shape(); if (!aShape.IsNull()) setSketchPlane(aShape);