godot_luaAPI icon indicating copy to clipboard operation
godot_luaAPI copied to clipboard

Bug Report: Issues with nested tables with named keys

Open Connor-McCloskey opened this issue 1 year ago • 0 comments

Describe the bug There's something funky going on with passing tables with nested tables that have named key/value pairs back to GDScript. When doing so, you'll receive this error: bad argument #1 to 'base.next' (table expected, got function)

To Reproduce Pass a table such as this one described here from any Lua function to a function in GDScript:

local nested = {x=1,y=2} local t = {} table.insert(t, nested) godot_test_function(t)

Expected behavior I would expect GDScript to just receive a dictionary or array as normal.

Connor-McCloskey avatar May 09 '24 18:05 Connor-McCloskey