From 0b907a77169d3abfc503b2e2054e392350fbe0cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lera=20Elvo=C3=A9?= Date: Fri, 8 Dec 2023 14:36:43 +0300 Subject: [PATCH] make pass if true node consider clickable checkbox --- classes/deck/nodes/if_true.gd | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/classes/deck/nodes/if_true.gd b/classes/deck/nodes/if_true.gd index 72da98f..18ee775 100644 --- a/classes/deck/nodes/if_true.gd +++ b/classes/deck/nodes/if_true.gd @@ -27,7 +27,9 @@ func _receive(to_input_port: int, data: Variant, extra_data: Array = []) -> void if to_input_port != 1: return - if !request_value(0): - return + if request_value(0): + send(0, data, extra_data) + elif ports[0].value: + send(0, data, extra_data) + - send(0, data, extra_data)