[Bf-blender-cvs] [9cfffe84681] master: UI: Open File Browser with Thumbnails for Fonts

Harley Acheson noreply at git.blender.org
Sat Oct 30 23:04:13 CEST 2021


Commit: 9cfffe84681bfa4dd43d0d2338feabf2ad9cfd29
Author: Harley Acheson
Date:   Sat Oct 30 14:02:34 2021 -0700
Branches: master
https://developer.blender.org/rB9cfffe84681bfa4dd43d0d2338feabf2ad9cfd29

UI: Open File Browser with Thumbnails for Fonts

When browsing to open a font file, open File Browser in Thumbnail View
and sorting by name, instead of using the last-used states.

See D13040 for more details.

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

Reviewed by Julian Eisel

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

M	source/blender/editors/curve/editfont.c

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

diff --git a/source/blender/editors/curve/editfont.c b/source/blender/editors/curve/editfont.c
index 1b44cf88db1..6f18798bd2a 100644
--- a/source/blender/editors/curve/editfont.c
+++ b/source/blender/editors/curve/editfont.c
@@ -2155,8 +2155,8 @@ void FONT_OT_open(wmOperatorType *ot)
                                  FILE_SPECIAL,
                                  FILE_OPENFILE,
                                  WM_FILESEL_FILEPATH | WM_FILESEL_RELPATH,
-                                 FILE_DEFAULTDISPLAY,
-                                 FILE_SORT_DEFAULT);
+                                 FILE_IMGDISPLAY,
+                                 FILE_SORT_ALPHA);
 }
 
 /** \} */



More information about the Bf-blender-cvs mailing list