Browse Source

Merge pull request #620 from akien-mga/bindgen-fix-NodePath-escape

Rémi Verschelde 3 years ago
parent
commit
bfdf55afd9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      binding_generator.py

+ 1 - 1
binding_generator.py

@@ -308,7 +308,7 @@ def generate_class_header(used_classes, c, use_template_get_node):
                     return "Rect2" + default_value
                     return "Rect2" + default_value
                 if _type == "Variant":
                 if _type == "Variant":
                     return "Variant()" if default_value == "Null" else default_value
                     return "Variant()" if default_value == "Null" else default_value
-                if _type == "String":
+                if _type == "String" or _type == "NodePath":
                     return "\"" + default_value + "\""
                     return "\"" + default_value + "\""
                 if _type == "RID":
                 if _type == "RID":
                     return "RID()"
                     return "RID()"