bool hasAttribute = false;
bool hasFeature = false;
- QList<ModuleBase_ViewerPrs> aPrsList = aSelection->getSelected();
+ QList<ModuleBase_ViewerPrs> aPrsList = aSelection->getSelected(ModuleBase_ISelection::AllControls);
TopoDS_Shape aShape;
ResultPtr aResult;
FeaturePtr aFeature;
}
}
}
- } else {
- // Start editing constraint
- if (theOperation->isEditOperation()) {
- // TODO: #391 - to be removed
- std::string aId = theOperation->id().toStdString();
- if (PartSet_SketcherMgr::isNestedSketchOperation(theOperation) &&
- PartSet_SketcherMgr::isDistanceOperation(theOperation)) {
- // Find and activate widget for management of point for dimension line position
- QList<ModuleBase_ModelWidget*> aWidgets = aPanel->modelWidgets();
- foreach (ModuleBase_ModelWidget* aWgt, aWidgets) {
- PartSet_WidgetPoint2D* aPntWgt = dynamic_cast<PartSet_WidgetPoint2D*>(aWgt);
- if (aPntWgt) {
- aPanel->activateWidget(aPntWgt);
- return;
- }
- }
- }
- }
}
}