Fix some property validation not been refactored

This commit is contained in:
RedMser 2022-08-18 16:11:25 +02:00
parent dbd1524362
commit 83f2723893
3 changed files with 6 additions and 4 deletions

View file

@ -179,7 +179,7 @@ AABB ReflectionProbe::get_aabb() const {
}
void ReflectionProbe::_validate_property(PropertyInfo &property) const {
if (property.name == "interior/ambient_color" || property.name == "interior/ambient_color_energy") {
if (property.name == "ambient_color" || property.name == "ambient_color_energy") {
if (ambient_mode != AMBIENT_COLOR) {
property.usage = PROPERTY_USAGE_NO_EDITOR | PROPERTY_USAGE_INTERNAL;
}