From 9590b6ae4f5805ee44d2f87d79f9eaf3a04e31fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lera=20Elvo=C3=A9?= Date: Tue, 23 Jul 2024 23:20:55 +0000 Subject: [PATCH] fix passthrough sending when it's not meant to (#169) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closes #168 Reviewed-on: https://codeberg.org/StreamGraph/StreamGraph/pulls/169 Co-authored-by: Lera ElvoƩ Co-committed-by: Lera ElvoƩ --- classes/deck/nodes/general/passthrough.gd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/classes/deck/nodes/general/passthrough.gd b/classes/deck/nodes/general/passthrough.gd index fec0f65..18f8151 100644 --- a/classes/deck/nodes/general/passthrough.gd +++ b/classes/deck/nodes/general/passthrough.gd @@ -31,6 +31,9 @@ func _init() -> void: ) -func _receive(_to_input_port: int, _data: Variant) -> void: +func _receive(to_input_port: int, _data: Variant) -> void: + if to_input_port != 0: + return + var data = await resolve_input_port_value_async(1) send(0, data)