[Bf-blender-cvs] [9bb7de274dc] master: USD: Enable operator presets when exporting

Philipp Oeser noreply at git.blender.org
Thu Jun 2 15:08:44 CEST 2022


Commit: 9bb7de274dc274a9764492491cf65525ff2d102b
Author: Philipp Oeser
Date:   Mon May 9 15:28:36 2022 +0200
Branches: master
https://developer.blender.org/rB9bb7de274dc274a9764492491cf65525ff2d102b

USD: Enable operator presets when exporting

This patch enables operator presets for USD 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.

Same as {rB1d668b635632}

Differential Revision: https://developer.blender.org/D14896

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

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

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

diff --git a/source/blender/editors/io/io_usd.c b/source/blender/editors/io/io_usd.c
index 609230eefea..8a24b48be5e 100644
--- a/source/blender/editors/io/io_usd.c
+++ b/source/blender/editors/io/io_usd.c
@@ -217,6 +217,7 @@ void WM_OT_usd_export(struct wmOperatorType *ot)
   ot->check = wm_usd_export_check;
 
   ot->flag = OPTYPE_REGISTER; /* No UNDO possible. */
+  ot->flag |= OPTYPE_PRESET;
 
   WM_operator_properties_filesel(ot,
                                  FILE_TYPE_FOLDER | FILE_TYPE_USD,



More information about the Bf-blender-cvs mailing list