Fix some property validation not been refactored
This commit is contained in:
parent
dbd1524362
commit
83f2723893
3 changed files with 6 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue