Prefer to use BaseClass's isDerivedFrom<T> over non template or Base::Type's
Regex based changes, manually verified
This commit is contained in:
@@ -105,7 +105,7 @@ public:
|
||||
// https://forum.freecad.org/viewtopic.php?f=3&t=37448
|
||||
if (object == activeBody) {
|
||||
App::DocumentObject* tip = activeBody->Tip.getValue();
|
||||
if (tip && tip->isDerivedFrom(Part::Feature::getClassTypeId()) && elements.size() == 1) {
|
||||
if (tip && tip->isDerivedFrom<Part::Feature>() && elements.size() == 1) {
|
||||
Gui::SelectionChanges msg;
|
||||
msg.pDocName = faceSelection.getDocName();
|
||||
msg.pObjectName = tip->getNameInDocument();
|
||||
|
||||
Reference in New Issue
Block a user