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

Fixes #7476.
This commit is contained in:
Ferenc Arn 2017-01-18 18:56:27 -06:00
parent ca14dd296a
commit 81d9fe44df

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