diff options
author | Ankur Deria <DAnkur> | 2021-02-04 03:32:31 +0300 |
---|---|---|
committer | Nathan Craddock <nzcraddock@gmail.com> | 2021-02-04 03:48:39 +0300 |
commit | 1ad1ecf1c93d375aae623eff6bab8cbb7d33a63a (patch) | |
tree | 1d592a51e43b9300d57ad322d16a82dbd5b31ddf /release/scripts/modules/bpy_types.py | |
parent | 01d49d1542cee0da2a7629443f9534bc5cec5a55 (diff) |
Fix T79822: Custom preset casing not preserved
When adding a new preset the name would be converted to lower case and
then displayed in the interface in title case. This was confusing
because the name didn't reflect what was typed, and there are many cases
when the name shouldn't be forced into title case (like 8K UHDTV for
example).
This commit leaves the custom preset names in the original casing, and
removes the conversion of filenames to title case for preset lists.
Differential Revision: https://developer.blender.org/D10224
Diffstat (limited to 'release/scripts/modules/bpy_types.py')
-rw-r--r-- | release/scripts/modules/bpy_types.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/release/scripts/modules/bpy_types.py b/release/scripts/modules/bpy_types.py index d863778a9c2..5d89763f34b 100644 --- a/release/scripts/modules/bpy_types.py +++ b/release/scripts/modules/bpy_types.py @@ -982,6 +982,7 @@ class Menu(StructRNA, _GenericUI, metaclass=RNAMeta): props_default=props_default, filter_ext=lambda ext: ext.lower() in ext_valid, add_operator=add_operator, + display_name=lambda name: bpy.path.display_name(name, title_case=False) ) @classmethod |