Browse Source

capitalize shader uniform groups

Nathan Franke 3 years ago
parent
commit
3d7d4ccada
1 changed files with 2 additions and 2 deletions
  1. 2 2
      scene/resources/material.cpp

+ 2 - 2
scene/resources/material.cpp

@@ -233,7 +233,7 @@ void ShaderMaterial::_get_property_list(List<PropertyInfo> *p_list) const {
 					if (!groups.has(last_group)) {
 					if (!groups.has(last_group)) {
 						PropertyInfo info;
 						PropertyInfo info;
 						info.usage = PROPERTY_USAGE_GROUP;
 						info.usage = PROPERTY_USAGE_GROUP;
-						info.name = last_group;
+						info.name = last_group.capitalize();
 
 
 						List<PropertyInfo> none_subgroup;
 						List<PropertyInfo> none_subgroup;
 						none_subgroup.push_back(info);
 						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)) {
 					if (!groups[last_group].has(last_subgroup)) {
 						PropertyInfo info;
 						PropertyInfo info;
 						info.usage = PROPERTY_USAGE_SUBGROUP;
 						info.usage = PROPERTY_USAGE_SUBGROUP;
-						info.name = last_subgroup;
+						info.name = last_subgroup.capitalize();
 
 
 						List<PropertyInfo> subgroup;
 						List<PropertyInfo> subgroup;
 						subgroup.push_back(info);
 						subgroup.push_back(info);