Updated Globals
Added fix to prevent updating passthrough when we disable it.
This commit is contained in:
parent
262bb3beb5
commit
98dfc7adea
1 changed files with 2 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue