Rename 'OriginFeature' to 'DatumElement'
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user