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);
}
}
}
{
PartSet_OperationSketchBase* aPreviewOp = dynamic_cast<PartSet_OperationSketchBase*>(theOperation);
return aPreviewOp != NULL;
-}
\ No newline at end of file
+}
+