mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 07:53:26 +00:00
Always show settings to enable DOF near + far
This commit is contained in:
parent
b7c5fcaf1e
commit
c79fe58939
1 changed files with 2 additions and 2 deletions
|
@ -259,8 +259,8 @@ void CameraAttributesPractical::_validate_property(PropertyInfo &p_property) con
|
||||||
if (!Engine::get_singleton()->is_editor_hint()) {
|
if (!Engine::get_singleton()->is_editor_hint()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ((!dof_blur_far_enabled && p_property.name.begins_with("dof_blur_far_")) ||
|
if ((p_property.name != "dof_blur_far_enabled" && !dof_blur_far_enabled && p_property.name.begins_with("dof_blur_far_")) ||
|
||||||
(!dof_blur_near_enabled && p_property.name.begins_with("dof_blur_near_"))) {
|
(p_property.name != "dof_blur_near_enabled" && !dof_blur_near_enabled && p_property.name.begins_with("dof_blur_near_"))) {
|
||||||
p_property.usage = PROPERTY_USAGE_NO_EDITOR;
|
p_property.usage = PROPERTY_USAGE_NO_EDITOR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue