mirror of
https://github.com/CrispyPin/ovr-utils.git
synced 2024-11-21 23:20:25 +01:00
remove debug prints
This commit is contained in:
parent
43d3ce3e16
commit
f081a963a4
3 changed files with 2 additions and 11 deletions
|
@ -57,11 +57,7 @@ func _trigger_off():
|
|||
|
||||
|
||||
func _on_OverlayArea_entered(body: Node) -> void:
|
||||
if OverlayInit.DEBUG_TRIGGERS:
|
||||
print(body.name + " entered trigger")
|
||||
if body.get_node("../../..") != self or pause_triggers or !get_parent().overlay_visible:
|
||||
if OverlayInit.DEBUG_TRIGGERS:
|
||||
print("ignored")
|
||||
return
|
||||
touch_state = true
|
||||
active_controller = body.get_parent().name
|
||||
|
@ -70,11 +66,8 @@ func _on_OverlayArea_entered(body: Node) -> void:
|
|||
|
||||
|
||||
func _on_OverlayArea_exited(body: Node) -> void:
|
||||
if OverlayInit.DEBUG_TRIGGERS:
|
||||
print(body.name + " left trigger")
|
||||
if body.get_node("../../..") != self or pause_triggers or !get_parent().overlay_visible:
|
||||
return
|
||||
# TODO revert to other controller if both were touching (edge case)
|
||||
active_controller = ""
|
||||
touch_state = false
|
||||
update_selection()
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
extends Node
|
||||
|
||||
|
||||
const DEBUG_TRIGGERS = true
|
||||
|
||||
const OVERLAY_PROPERTIES_DEFAULT = {
|
||||
"allow_delete": true,
|
||||
"allow_hide": true,
|
||||
|
|
|
@ -28,8 +28,8 @@ gdscript/warnings/return_value_discarded=false
|
|||
|
||||
[display]
|
||||
|
||||
window/size/width=16
|
||||
window/size/height=16
|
||||
window/size/width=2048
|
||||
window/size/height=2048
|
||||
|
||||
[editor_plugins]
|
||||
|
||||
|
|
Loading…
Reference in a new issue