Explorar o código

Merge pull request #7577 from tagcup/issue_7476

Use property convention introduced in b085c4 (_ rather than / as sepa…
Juan Linietsky %!s(int64=8) %!d(string=hai) anos
pai
achega
34016a8b73
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      scene/resources/material.cpp

+ 1 - 1
scene/resources/material.cpp

@@ -732,7 +732,7 @@ Ref<Texture> FixedSpatialMaterial::get_texture(TextureParam p_param) const {
 
 
 void FixedSpatialMaterial::_validate_feature(const String& text, Feature feature,PropertyInfo& property) const {
-	if (property.name.begins_with(text) && property.name!=text+"/enabled" && !features[feature]) {
+	if (property.name.begins_with(text) && property.name!=text+"_enabled" && !features[feature]) {
 		property.usage=0;
 	}