remove debug prints

This commit is contained in:
Crispy 2021-10-10 16:51:52 +02:00
parent 43d3ce3e16
commit f081a963a4
3 changed files with 2 additions and 11 deletions

View file

@ -57,11 +57,7 @@ func _trigger_off():
func _on_OverlayArea_entered(body: Node) -> void: 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 body.get_node("../../..") != self or pause_triggers or !get_parent().overlay_visible:
if OverlayInit.DEBUG_TRIGGERS:
print("ignored")
return return
touch_state = true touch_state = true
active_controller = body.get_parent().name active_controller = body.get_parent().name
@ -70,11 +66,8 @@ func _on_OverlayArea_entered(body: Node) -> void:
func _on_OverlayArea_exited(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: if body.get_node("../../..") != self or pause_triggers or !get_parent().overlay_visible:
return return
# TODO revert to other controller if both were touching (edge case)
active_controller = "" active_controller = ""
touch_state = false touch_state = false
update_selection() update_selection()

View file

@ -1,8 +1,6 @@
extends Node extends Node
const DEBUG_TRIGGERS = true
const OVERLAY_PROPERTIES_DEFAULT = { const OVERLAY_PROPERTIES_DEFAULT = {
"allow_delete": true, "allow_delete": true,
"allow_hide": true, "allow_hide": true,

View file

@ -28,8 +28,8 @@ gdscript/warnings/return_value_discarded=false
[display] [display]
window/size/width=16 window/size/width=2048
window/size/height=16 window/size/height=2048
[editor_plugins] [editor_plugins]