Prefer to use BaseClass's isDerivedFrom<T> over non template or Base::Type's
Regex based changes, manually verified
This commit is contained in:
@@ -136,7 +136,7 @@ std::list<ViewProviderMesh*> MeshSelection::getViewProviders() const
|
||||
std::vector<App::DocumentObject*> objs = getObjects();
|
||||
std::list<ViewProviderMesh*> vps;
|
||||
for (auto obj : objs) {
|
||||
if (obj->isDerivedFrom(Mesh::Feature::getClassTypeId())) {
|
||||
if (obj->isDerivedFrom<Mesh::Feature>()) {
|
||||
Gui::ViewProvider* vp = Gui::Application::Instance->getViewProvider(obj);
|
||||
if (vp->isVisible()) {
|
||||
vps.push_back(static_cast<ViewProviderMesh*>(vp));
|
||||
|
||||
Reference in New Issue
Block a user