2
0
Эх сурвалжийг харах

Merge pull request #7577 from tagcup/issue_7476

Use property convention introduced in b085c4 (_ rather than / as sepa…
Juan Linietsky 8 жил өмнө
parent
commit
34016a8b73

+ 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 {
 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;
 		property.usage=0;
 	}
 	}