2024-02-06 12:03:32 +01:00

8 lines
262 B
GDScript

extends CheckButton
func _ready():
set_pressed_no_signal(Global.camera_attributes.dof_blur_far_enabled)
func on_toggled(toggled_on: bool):
Global.camera_attributes.dof_blur_far_enabled = toggled_on
Global.camera_attributes.dof_blur_near_enabled = toggled_on