USD IO: enable presets.

Enable Operator Presets drop down menu
for the USD import/export operators.
This commit is contained in:
Michael Kowalski 2021-10-25 16:56:59 -04:00
parent 1496105327
commit f1828d3430
1 changed files with 4 additions and 0 deletions

View File

@ -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,