Fix wrapping methods with Array return types
This commit is contained in:
parent
3f46e3c648
commit
d3e5f91b40
2 changed files with 3 additions and 1 deletions
|
|
@ -642,6 +642,8 @@ proc doGenerateMethod(tree: PNode, methodBindRegistry: var HashSet[string],
|
|||
body.add(newPNode(nkVarSection).addChain(newIdentDefs(
|
||||
retValIdent, ident("Godot" & returnType),
|
||||
)))
|
||||
if returnType != "NodePath":
|
||||
body.add(newCall("initGodot" & returnType, retValIdent))
|
||||
elif returnType in standardTypes:
|
||||
addrToAssign = newCall("addr", ident("result"))
|
||||
elif returnType == "string":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue