diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2019-09-19 16:55:03 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2019-09-19 16:55:19 +0300 |
commit | 34143e45104b296ece09c646ea3fb0d8bb24c519 (patch) | |
tree | 2d6c99e6f4596b1561d25f12e6cdc46a87ec1842 /source/blender/editors/io | |
parent | 1353158aa24b4ada82cc569543e765c5ff388e20 (diff) |
Fix T70070: Path always absolute when importing Alembic
Importing an Alembic file with a relative path is now also possible.
Diffstat (limited to 'source/blender/editors/io')
-rw-r--r-- | source/blender/editors/io/io_alembic.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/io/io_alembic.c b/source/blender/editors/io/io_alembic.c index aac4da12658..573dfcde88a 100644 --- a/source/blender/editors/io/io_alembic.c +++ b/source/blender/editors/io/io_alembic.c @@ -604,6 +604,9 @@ static void ui_alembic_import_settings(uiLayout *layout, PointerRNA *imfptr) uiItemL(row, IFACE_("Options:"), ICON_NONE); row = uiLayoutRow(box, false); + uiItemR(row, imfptr, "relative_path", 0, NULL, ICON_NONE); + + row = uiLayoutRow(box, false); uiItemR(row, imfptr, "set_frame_range", 0, NULL, ICON_NONE); row = uiLayoutRow(box, false); @@ -691,7 +694,7 @@ void WM_OT_alembic_import(wmOperatorType *ot) FILE_TYPE_FOLDER | FILE_TYPE_ALEMBIC, FILE_BLENDER, FILE_SAVE, - WM_FILESEL_FILEPATH, + WM_FILESEL_FILEPATH | WM_FILESEL_RELPATH, FILE_DEFAULTDISPLAY, FILE_SORT_ALPHA); |