Skip to content

Commit d3e5f91

Browse files
committed
Fix wrapping methods with Array return types
1 parent 3f46e3c commit d3e5f91

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

godot.nimble

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "0.8.0"
1+
version = "0.8.1"
22
author = "Xored Software, Inc."
33
description = "Godot Engine bindings"
44
license = "MIT"

godot/godotapigen.nim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,8 @@ proc doGenerateMethod(tree: PNode, methodBindRegistry: var HashSet[string],
642642
body.add(newPNode(nkVarSection).addChain(newIdentDefs(
643643
retValIdent, ident("Godot" & returnType),
644644
)))
645+
if returnType != "NodePath":
646+
body.add(newCall("initGodot" & returnType, retValIdent))
645647
elif returnType in standardTypes:
646648
addrToAssign = newCall("addr", ident("result"))
647649
elif returnType == "string":

0 commit comments

Comments
 (0)