[Bf-blender-cvs] [1d668b63563] master: Alembic: Enable operator presets when exporting

Ethan-Hall noreply at git.blender.org
Tue May 3 22:58:28 CEST 2022


Commit: 1d668b6356327ba86d524d53bbf1360a5a0914d5
Author: Ethan-Hall
Date:   Tue May 3 22:54:46 2022 +0200
Branches: master
https://developer.blender.org/rB1d668b6356327ba86d524d53bbf1360a5a0914d5

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

===================================================================

M	source/blender/editors/io/io_alembic.c

===================================================================

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, "", "");
 }
 
 /* ************************************************************************** */



More information about the Bf-blender-cvs mailing list