Merge pull request #7577 from tagcup/issue_7476

Use property convention introduced in b085c4 (_ rather than / as sepa…
This commit is contained in:
Juan Linietsky 2017-01-18 22:01:57 -03:00 committed by GitHub
commit 34016a8b73
1 changed files with 1 additions and 1 deletions

View File

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