From c79fe5893965cb9fd10e90770d20b6bec3d232e8 Mon Sep 17 00:00:00 2001 From: Kaleb Reid <78945904+Kaleb-Reid@users.noreply.github.com> Date: Mon, 29 Sep 2025 22:29:24 -0700 Subject: [PATCH] Always show settings to enable DOF near + far --- scene/resources/camera_attributes.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scene/resources/camera_attributes.cpp b/scene/resources/camera_attributes.cpp index b82896b5bd6..9fd1035780d 100644 --- a/scene/resources/camera_attributes.cpp +++ b/scene/resources/camera_attributes.cpp @@ -259,8 +259,8 @@ void CameraAttributesPractical::_validate_property(PropertyInfo &p_property) con if (!Engine::get_singleton()->is_editor_hint()) { return; } - if ((!dof_blur_far_enabled && p_property.name.begins_with("dof_blur_far_")) || - (!dof_blur_near_enabled && p_property.name.begins_with("dof_blur_near_"))) { + if ((p_property.name != "dof_blur_far_enabled" && !dof_blur_far_enabled && p_property.name.begins_with("dof_blur_far_")) || + (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; } }