Import: use Part::ImportExportSettings to access parameters

This commit is contained in:
wmayer
2022-07-23 21:58:51 +02:00
parent b00044c656
commit fed9f20f48
3 changed files with 19 additions and 27 deletions

View File

@@ -314,9 +314,8 @@ private:
}
if (legacy == Py_None) {
auto hGrp = App::GetApplication().GetParameterGroupByPath(
"User parameter:BaseApp/Preferences/Mod/Import");
legacy = hGrp->GetBool("ExportLegacy",false) ? Py_True : Py_False;
Part::ImportExportSettings settings;
legacy = settings.getExportLegacy() ? Py_True : Py_False;
}
Import::ExportOCAF2 ocaf(hDoc);