From 83ef64079be38036212c940370e260090b0cfa2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Mon, 27 Sep 2021 12:41:46 +0200 Subject: [PATCH] bindgen: Properly escape NodePath in default args --- binding_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binding_generator.py b/binding_generator.py index 491ae9b..9542b00 100644 --- a/binding_generator.py +++ b/binding_generator.py @@ -308,7 +308,7 @@ def generate_class_header(used_classes, c, use_template_get_node): return "Rect2" + default_value if _type == "Variant": return "Variant()" if default_value == "Null" else default_value - if _type == "String": + if _type == "String" or _type == "NodePath": return "\"" + default_value + "\"" if _type == "RID": return "RID()"