Fix openarray toGodot
This commit is contained in:
parent
94f6f7c8a7
commit
0c5e2e463c
1 changed files with 1 additions and 2 deletions
|
|
@ -456,8 +456,7 @@ proc godotVariantType*(T: typedesc[array]): VariantType =
|
|||
VariantType.Array
|
||||
|
||||
proc toGodot*[T](s: openarray[T]): Variant =
|
||||
var arr: Array
|
||||
initArray(arr)
|
||||
var arr = initArray()
|
||||
mixin toGodot
|
||||
for item in s:
|
||||
arr.add(toGodot(item))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue