mirror of
https://codeberg.org/StreamGraph/StreamGraph.git
synced 2024-11-13 19:49:55 +01:00
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:
parent
a1b74410f6
commit
18b83f5b26
4 changed files with 4 additions and 10 deletions
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue