瀏覽代碼

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;
 	}