X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_OperationSketch.cpp;h=acd79461dc773c4fb58ba4c62a7b4c97329fe1e3;hb=5bac8bac0b4cd2e4520c0908b2863d747e411fb9;hp=ece230157c94da4da77546438e8eab2b52385497;hpb=dbe90044b0b96aa64dfe6609083413da2bdf08ec;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_OperationSketch.cpp b/src/PartSet/PartSet_OperationSketch.cpp index ece230157..acd79461d 100644 --- a/src/PartSet/PartSet_OperationSketch.cpp +++ b/src/PartSet/PartSet_OperationSketch.cpp @@ -115,13 +115,7 @@ void PartSet_OperationSketch::mouseReleased(QMouseEvent* theEvent, Handle_V3d_Vi if (theSelected.size() == 1) { ObjectPtr aObject = theSelected.front().object(); if (aObject) { - FeaturePtr aFeature = ModelAPI_Feature::feature(aObject); - if (aFeature) { - QStringList aNested = this->nestedFeatures(); - if ((!aNested.isEmpty()) && aNested.contains(QString(aFeature->getKind().c_str()))) { - restartOperation(PartSet_OperationFeatureEdit::Type(), aObject); - } - } + restartOperation(PartSet_OperationFeatureEdit::Type(), aObject); } } } @@ -263,4 +257,5 @@ bool PartSet_OperationSketch::isValid(ModuleBase_IOperation* theOperation) const { PartSet_OperationSketchBase* aPreviewOp = dynamic_cast(theOperation); return aPreviewOp != NULL; -} \ No newline at end of file +} +