OBJ: add global scale factor import setting

Requested in D16095 proposal - also USD & Alembic have import scale
option; OBJ has an export scale object but the import scale
was not there for some reason.
This commit is contained in:
2022-10-10 10:10:33 +03:00
parent a24f11e0ec
commit 42b1a7d4c6
11 changed files with 42 additions and 24 deletions

View File

@@ -35,7 +35,7 @@ struct OBJExportParams {
/* Geometry Transform options. */
eIOAxis forward_axis;
eIOAxis up_axis;
float scaling_factor;
float global_scale;
/* File Write Options. */
bool export_selected_objects;
@@ -65,6 +65,7 @@ struct OBJImportParams {
char filepath[FILE_MAX];
/** Value 0 disables clamping. */
float clamp_size;
float global_scale;
eIOAxis forward_axis;
eIOAxis up_axis;
bool import_vertex_groups;