8 lines
262 B
GDScript3
Raw Normal View History

2024-02-06 11:03:32 +00:00
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