Prefer to use BaseClass's isDerivedFrom<T> over non template or Base::Type's

Regex based changes, manually verified
This commit is contained in:
Benjamin Nauck
2025-01-16 21:27:50 +01:00
parent 6a3eb2ab49
commit 6f535f19fb
166 changed files with 484 additions and 497 deletions

View File

@@ -254,7 +254,7 @@ bool Tessellation::accept()
shapeObjects.emplace_back(sel.pObject, sel.SubName);
}
else if (sel.pObject) {
if (sel.pObject->isDerivedFrom(Part::Feature::getClassTypeId())) {
if (sel.pObject->isDerivedFrom<Part::Feature>()) {
partWithNoFace = true;
}
if (auto body = dynamic_cast<Part::BodyBase*>(sel.pObject)) {