Skip to content

Commit 33bfd1f

Browse files
committed
Merge pull request #111060 from Kaleb-Reid/fix-dof-enable
Always show settings to enable DOF near + far
2 parents c92430e + c79fe58 commit 33bfd1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scene/resources/camera_attributes.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,8 @@ void CameraAttributesPractical::_validate_property(PropertyInfo &p_property) con
259259
if (!Engine::get_singleton()->is_editor_hint()) {
260260
return;
261261
}
262-
if ((!dof_blur_far_enabled && p_property.name.begins_with("dof_blur_far_")) ||
263-
(!dof_blur_near_enabled && p_property.name.begins_with("dof_blur_near_"))) {
262+
if ((p_property.name != "dof_blur_far_enabled" && !dof_blur_far_enabled && p_property.name.begins_with("dof_blur_far_")) ||
263+
(p_property.name != "dof_blur_near_enabled" && !dof_blur_near_enabled && p_property.name.begins_with("dof_blur_near_"))) {
264264
p_property.usage = PROPERTY_USAGE_NO_EDITOR;
265265
}
266266
}

0 commit comments

Comments
 (0)