Commit: f1828d3430c9707ba436990d5fde527468ff17b8
Author: Michael Kowalski
Date: Mon Oct 25 16:56:59 2021 -0400
Branches: universal-scene-description
https://developer.blender.org/rBf1828d3430c9707ba436990d5fde527468ff17b8
USD IO: enable presets.
Enable Operator Presets drop down menu
for the USD import/export operators.
===================================================================
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 d1f761b8c8c..aad7536acd9 100644
--- a/source/blender/editors/io/io_usd.c
+++ b/source/blender/editors/io/io_usd.c
@@ -498,6 +498,8 @@ void WM_OT_usd_export(struct wmOperatorType *ot)
ot->poll = WM_operator_winactive;
ot->ui = wm_usd_export_draw;
+ ot->flag = OPTYPE_PRESET;
+
WM_operator_properties_filesel(ot,
FILE_TYPE_FOLDER | FILE_TYPE_USD,
FILE_BLENDER,
@@ -1045,6 +1047,8 @@ void WM_OT_usd_import(struct wmOperatorType *ot)
ot->poll = WM_operator_winactive;
ot->ui = wm_usd_import_draw;
+ ot->flag = OPTYPE_PRESET;
+
WM_operator_properties_filesel(ot,
FILE_TYPE_FOLDER | FILE_TYPE_USD,
FILE_BLENDER,
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs