Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEthan-Hall <Ethan1080>2022-05-03 23:54:46 +0300
committerKévin Dietrich <kevin.dietrich@mailoo.org>2022-05-03 23:58:18 +0300
commit1d668b6356327ba86d524d53bbf1360a5a0914d5 (patch)
treeab80028db47f5ce39ec8f25a214c64987a2dea4b /source/blender/editors/io
parent04df0a3b8cb176d29ecc1fc37cb98cb823226520 (diff)
Alembic: Enable operator presets when exporting
This patch enables operator presets for Alembic exports. The export menu has many options, so enabling the feature will help users manage their export settings in the same way they can with other filetypes. This also fixes restoring the default operator value for setting the frame range. Differential Revision: https://developer.blender.org/D12849
Diffstat (limited to 'source/blender/editors/io')
-rw-r--r--source/blender/editors/io/io_alembic.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/io/io_alembic.c b/source/blender/editors/io/io_alembic.c
index fd454083653..87923d9fdf8 100644
--- a/source/blender/editors/io/io_alembic.c
+++ b/source/blender/editors/io/io_alembic.c
@@ -282,6 +282,7 @@ void WM_OT_alembic_export(wmOperatorType *ot)
ot->poll = WM_operator_winactive;
ot->ui = wm_alembic_export_draw;
ot->check = wm_alembic_export_check;
+ ot->flag |= OPTYPE_PRESET;
WM_operator_properties_filesel(ot,
FILE_TYPE_FOLDER | FILE_TYPE_ALEMBIC,
@@ -475,7 +476,7 @@ void WM_OT_alembic_export(wmOperatorType *ot)
/* This dummy prop is used to check whether we need to init the start and
* end frame values to that of the scene's, otherwise they are reset at
* every change, draw update. */
- RNA_def_boolean(ot->srna, "init_scene_frame_range", false, "", "");
+ RNA_def_boolean(ot->srna, "init_scene_frame_range", true, "", "");
}
/* ************************************************************************** */