You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-06 17:25:19 +00:00
Make _validate_property a multilevel method
This commit is contained in:
@@ -145,11 +145,11 @@ void CameraEffects::_update_override_exposure() {
|
||||
|
||||
// Private methods, constructor and destructor
|
||||
|
||||
void CameraEffects::_validate_property(PropertyInfo &property) const {
|
||||
if ((!dof_blur_far_enabled && (property.name == "dof_blur_far_distance" || property.name == "dof_blur_far_transition")) ||
|
||||
(!dof_blur_near_enabled && (property.name == "dof_blur_near_distance" || property.name == "dof_blur_near_transition")) ||
|
||||
(!override_exposure_enabled && property.name == "override_exposure")) {
|
||||
property.usage = PROPERTY_USAGE_NO_EDITOR;
|
||||
void CameraEffects::_validate_property(PropertyInfo &p_property) const {
|
||||
if ((!dof_blur_far_enabled && (p_property.name == "dof_blur_far_distance" || p_property.name == "dof_blur_far_transition")) ||
|
||||
(!dof_blur_near_enabled && (p_property.name == "dof_blur_near_distance" || p_property.name == "dof_blur_near_transition")) ||
|
||||
(!override_exposure_enabled && p_property.name == "override_exposure")) {
|
||||
p_property.usage = PROPERTY_USAGE_NO_EDITOR;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user