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
|
|
@ -1,4 +1,4 @@
|
||||||
version = "0.8.0"
|
version = "0.8.1"
|
||||||
author = "Xored Software, Inc."
|
author = "Xored Software, Inc."
|
||||||
description = "Godot Engine bindings"
|
description = "Godot Engine bindings"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|
|
||||||
|
|
@ -642,6 +642,8 @@ proc doGenerateMethod(tree: PNode, methodBindRegistry: var HashSet[string],
|
||||||
body.add(newPNode(nkVarSection).addChain(newIdentDefs(
|
body.add(newPNode(nkVarSection).addChain(newIdentDefs(
|
||||||
retValIdent, ident("Godot" & returnType),
|
retValIdent, ident("Godot" & returnType),
|
||||||
)))
|
)))
|
||||||
|
if returnType != "NodePath":
|
||||||
|
body.add(newCall("initGodot" & returnType, retValIdent))
|
||||||
elif returnType in standardTypes:
|
elif returnType in standardTypes:
|
||||||
addrToAssign = newCall("addr", ident("result"))
|
addrToAssign = newCall("addr", ident("result"))
|
||||||
elif returnType == "string":
|
elif returnType == "string":
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue