diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-08-08 10:18:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-08 10:18:57 +0200 |
commit | 159664bd93ea29ea32e8af3a2be119aa701dc9f0 (patch) | |
tree | bf8497caaa2ca002b420c63a24f04e4920fbc47a /scene/resources/material.cpp | |
parent | 8734ef1f7a2f3768218cf71d8e8d037e45d35a4b (diff) | |
parent | 3d7d4ccadab11435cccf2a593ed64831c24039ba (diff) |
Merge pull request #64093 from nathanfranke/shader-capitalize
Diffstat (limited to 'scene/resources/material.cpp')
-rw-r--r-- | scene/resources/material.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/resources/material.cpp b/scene/resources/material.cpp index 55356c2058..88bc01fb25 100644 --- a/scene/resources/material.cpp +++ b/scene/resources/material.cpp @@ -233,7 +233,7 @@ void ShaderMaterial::_get_property_list(List<PropertyInfo> *p_list) const { if (!groups.has(last_group)) { PropertyInfo info; info.usage = PROPERTY_USAGE_GROUP; - info.name = last_group; + info.name = last_group.capitalize(); List<PropertyInfo> none_subgroup; none_subgroup.push_back(info); @@ -247,7 +247,7 @@ void ShaderMaterial::_get_property_list(List<PropertyInfo> *p_list) const { if (!groups[last_group].has(last_subgroup)) { PropertyInfo info; info.usage = PROPERTY_USAGE_SUBGROUP; - info.name = last_subgroup; + info.name = last_subgroup.capitalize(); List<PropertyInfo> subgroup; subgroup.push_back(info); |