Преглед изворни кода

Use property convention introduced in b085c4 (_ rather than / as separator).

Fixes #7476.
Ferenc Arn пре 8 година
родитељ
комит
81d9fe44df
1 измењених фајлова са 1 додато и 1 уклоњено
  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;
 	}