fix passthrough sending when it's not meant to (#169)

closes #168

Reviewed-on: https://codeberg.org/StreamGraph/StreamGraph/pulls/169
Co-authored-by: Lera Elvoé <yagich@poto.cafe>
Co-committed-by: Lera Elvoé <yagich@poto.cafe>
This commit is contained in:
Lera Elvoé 2024-07-23 23:20:55 +00:00 committed by yagich
parent 3bff8e27e6
commit 9590b6ae4f

View file

@ -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) var data = await resolve_input_port_value_async(1)
send(0, data) send(0, data)