diff --git a/src/Mod/Import/App/ExportOCAF.cpp b/src/Mod/Import/App/ExportOCAF.cpp index adf65a1176..6b73a08ff2 100644 --- a/src/Mod/Import/App/ExportOCAF.cpp +++ b/src/Mod/Import/App/ExportOCAF.cpp @@ -162,7 +162,7 @@ int ExportOCAF::exportObject(App::DocumentObject* obj, int root_id; int return_label = -1; - if (obj->getTypeId().isDerivedFrom(App::Part::getClassTypeId())) { + if (obj->isDerivedFrom()) { App::Part* part = static_cast(obj); // I shall recursively select the elements and call back std::vector entries = part->Group.getValues(); @@ -188,7 +188,7 @@ int ExportOCAF::exportObject(App::DocumentObject* obj, return_label = root_id; } - if (obj->getTypeId().isDerivedFrom(Part::Feature::getClassTypeId())) { + if (obj->isDerivedFrom()) { Part::Feature* part = static_cast(obj); std::vector colors; findColors(part, colors);