Rename 'OriginFeature' to 'DatumElement'

This commit is contained in:
PaddleStroke
2024-09-20 10:18:50 +02:00
parent 3c1358da10
commit 3e33cf61e5
14 changed files with 63 additions and 67 deletions

View File

@@ -68,7 +68,7 @@ bool ReferenceSelection::allow(App::Document* pDoc, App::DocumentObject* pObj, c
}
// Enable selection from origin of current part/
if (pObj->isDerivedFrom<App::OriginFeature>()) {
if (pObj->isDerivedFrom<App::DatumElement>()) {
return allowOrigin(body, originGroup, pObj);
}
@@ -301,7 +301,7 @@ bool getReferencedSelection(const App::DocumentObject* thisObj, const Gui::Selec
//of course only if thisObj is in a body, as otherwise the old workflow would not
//be supported
PartDesign::Body* body = PartDesignGui::getBodyFor(thisObj, false);
bool originfeature = selObj->isDerivedFrom(App::OriginFeature::getClassTypeId());
bool originfeature = selObj->isDerivedFrom(App::DatumElement::getClassTypeId());
if (!originfeature && body) {
PartDesign::Body* selBody = PartDesignGui::getBodyFor(selObj, false);
if (!selBody || body != selBody) {