Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions material_maker/panels/preview_3d/post_process_menu.gd
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,11 @@ func restore_adjustment_settings() -> void:
setting_changed.emit(Section.ADJUSTMENT)

func restore_dof_settings() -> void:
if not DepthOfField.button_pressed:
camera_attributes.dof_blur_far_enabled = false
camera_attributes.dof_blur_near_enabled = false
return

if mm_globals.has_config(SETTINGS_PREVIEW_DOF_FAR):
FarEnabled.button_pressed = mm_globals.get_config(SETTINGS_PREVIEW_DOF_FAR)
camera_attributes.dof_blur_far_enabled = FarEnabled.button_pressed
Expand Down
Loading