Updated Globals

Added fix to prevent updating passthrough when we disable it.
This commit is contained in:
Mario Steele 2026-02-27 16:15:46 -06:00
parent 262bb3beb5
commit 98dfc7adea

View file

@ -40,6 +40,7 @@ func clear_mouse_passthrough() -> void:
DisplayServer.window_set_mouse_passthrough([])
func _update_mouse_passthrough() -> void:
if not _pt_mouse: return
var _pt_mask: PackedVector2Array = []
for node in _pt_except:
var rect := node.get_global_rect()
@ -57,6 +58,7 @@ func _update_mouse_passthrough() -> void:
func _process(_d: float) -> void:
if _pt_except.size() == 0: return
if not _pt_mouse: return
_update_mouse_passthrough()
func add_to_passthrough_exception(control: Control) -> void: