Prefer to use BaseClass's isDerivedFrom<T> over non template or Base::Type's
Regex based changes, manually verified
This commit is contained in:
@@ -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::DatumElement::getClassTypeId());
|
||||
bool originfeature = selObj->isDerivedFrom<App::DatumElement>();
|
||||
if (!originfeature && body) {
|
||||
PartDesign::Body* selBody = PartDesignGui::getBodyFor(selObj, false);
|
||||
if (!selBody || body != selBody) {
|
||||
|
||||
Reference in New Issue
Block a user