Skip to content

Commit bfdf55a

Browse files
authored
Merge pull request #620 from akien-mga/bindgen-fix-NodePath-escape
2 parents b8658d3 + 83ef640 commit bfdf55a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

binding_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def escape_default_arg(_type, default_value):
308308
return "Rect2" + default_value
309309
if _type == "Variant":
310310
return "Variant()" if default_value == "Null" else default_value
311-
if _type == "String":
311+
if _type == "String" or _type == "NodePath":
312312
return "\"" + default_value + "\""
313313
if _type == "RID":
314314
return "RID()"

0 commit comments

Comments
 (0)