Fix T97142: When Exporting GPencil, File Dialog Shows No Subfolders

The export had missing the `FILE_TYPE_FOLDER` flag.
This commit is contained in:
Antonio Vazquez 2022-04-28 17:58:17 +02:00
parent 099120e54a
commit 4296c1fe25
Notes: blender-bot 2023-02-14 08:45:09 +01:00
Referenced by issue #97142, Regression: When Exporting Grease Pencil, File Dialog Shows No Subfolders
1 changed files with 2 additions and 2 deletions

View File

@ -226,7 +226,7 @@ void WM_OT_gpencil_export_svg(wmOperatorType *ot)
ot->check = wm_gpencil_export_svg_common_check;
WM_operator_properties_filesel(ot,
FILE_TYPE_OBJECT_IO,
FILE_TYPE_FOLDER | FILE_TYPE_OBJECT_IO,
FILE_BLENDER,
FILE_SAVE,
WM_FILESEL_FILEPATH | WM_FILESEL_SHOW_PROPS,
@ -384,7 +384,7 @@ void WM_OT_gpencil_export_pdf(wmOperatorType *ot)
ot->check = wm_gpencil_export_pdf_common_check;
WM_operator_properties_filesel(ot,
FILE_TYPE_OBJECT_IO,
FILE_TYPE_FOLDER | FILE_TYPE_OBJECT_IO,
FILE_BLENDER,
FILE_SAVE,
WM_FILESEL_FILEPATH | WM_FILESEL_SHOW_PROPS,