Salome HOME
Constraint icons added
[modules/shaper.git] / src / PartSet / PartSet_OperationSketch.cpp
index ece230157c94da4da77546438e8eab2b52385497..acd79461dc773c4fb58ba4c62a7b4c97329fe1e3 100644 (file)
@@ -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<PartSet_OperationSketchBase*>(theOperation);
   return aPreviewOp != NULL;
-}
\ No newline at end of file
+}
+