diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-01-23 21:51:56 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-01-23 21:51:56 +0300 |
commit | 9d96399eeb5de8aaff5af1852b0d4ff16e626df1 (patch) | |
tree | 6471f27a52292d4f8c0f705813d8e9d4c130fb2f /release/scripts/modules | |
parent | 9feadd443a69484ec5b56af566d28758cc7ae119 (diff) |
- panel python template
- nicer syntax to capitalize words
Diffstat (limited to 'release/scripts/modules')
-rw-r--r-- | release/scripts/modules/bpy/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/modules/bpy/utils.py b/release/scripts/modules/bpy/utils.py index 90ba9ba4c71..855751a0743 100644 --- a/release/scripts/modules/bpy/utils.py +++ b/release/scripts/modules/bpy/utils.py @@ -75,8 +75,8 @@ def display_name(name): name_base = name_base.replace("_", " ") - if name_base.lower() == name_base: - return ' '.join([w[0].upper() + w[1:] for w in name_base.split()]) + if name_base.islower(): + return name_base.capitalize() else: return name_base |