fix value callback usage on output ports (#102)

fixes #100

Reviewed-on: https://codeberg.org/StreamGraph/StreamGraph/pulls/102
Co-authored-by: Lera Elvoé <yagich@poto.cafe>
Co-committed-by: Lera Elvoé <yagich@poto.cafe>
This commit is contained in:
Lera Elvoé 2024-03-14 06:27:49 +00:00 committed by yagich
parent a1b74410f6
commit 18b83f5b26
4 changed files with 4 additions and 10 deletions

View file

@ -18,7 +18,4 @@ func _init() -> void:
func _value_request(_from_port: int) -> Variant:
if ports[0].value_callback.get_object():
return ports[0].value_callback.call()
else:
return ports[0].value

View file

@ -28,7 +28,7 @@ func _init():
func parse(input: Dictionary) -> Variant:
var text = get_output_ports()[0].value_callback.call()
var text = get_output_ports()[0].value
var err = expr.parse(text, ["deck_var", "input"])
if err != OK:

View file

@ -17,5 +17,5 @@ func _init() -> void:
func _value_request(_from_port: int) -> Variant:
var key = ports[0].value_callback.call()
var key = ports[0].value
return _belonging_to.variable_stack.get(key)

View file

@ -17,7 +17,4 @@ func _init() -> void:
)
func _value_request(_from_port: int) -> Variant:
if ports[0].value_callback.get_object():
return ports[0].value_callback.call()
else:
return ports[0].value