Prefer to use BaseClass's isDerivedFrom<T> over non template or Base::Type's
Regex based changes, manually verified
This commit is contained in:
@@ -75,7 +75,7 @@ static App::Part* _getPartOfObject(const DocumentObject* obj,
|
||||
}
|
||||
auto group = inObj->getExtensionByType<GeoFeatureGroupExtension>(true);
|
||||
if (group && group->hasObject(obj)) {
|
||||
if (inObj->isDerivedFrom(App::Part::getClassTypeId())) {
|
||||
if (inObj->isDerivedFrom<App::Part>()) {
|
||||
return static_cast<App::Part*>(inObj);
|
||||
}
|
||||
else if (objset) {
|
||||
|
||||
Reference in New Issue
Block a user