We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7c5fca commit c79fe58Copy full SHA for c79fe58
scene/resources/camera_attributes.cpp
@@ -259,8 +259,8 @@ void CameraAttributesPractical::_validate_property(PropertyInfo &p_property) con
259
if (!Engine::get_singleton()->is_editor_hint()) {
260
return;
261
}
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_"))) {
+ 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_"))) {
264
p_property.usage = PROPERTY_USAGE_NO_EDITOR;
265
266
0 commit comments