Setting a Variant

This commit is contained in:
dingo
2026-03-26 15:17:49 -04:00
parent 8b0490687e
commit bf503da279
@@ -81,7 +81,7 @@ func _build_fields(r: Dictionary) -> void:
var opt := OptionButton.new()
for o in options:
opt.add_item(o)
var cur := get_s.call(key, def_v)
var cur : Variant = get_s.call(key, def_v)
var idx := options.find(cur)
opt.selected = idx if idx >= 0 else 0
hbox.add_child(opt)