From 7aeb3d3c4d2e02b1985e9ae2574bef5c5267c97b Mon Sep 17 00:00:00 2001 From: Relintai Date: Wed, 31 May 2023 17:29:01 +0200 Subject: [PATCH] Fix StringName default values. --- binding_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binding_generator.py b/binding_generator.py index a3c68e4..81dabbb 100644 --- a/binding_generator.py +++ b/binding_generator.py @@ -325,7 +325,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" or _type == "NodePath" or type == "StringName": + if _type == "String" or _type == "NodePath" or _type == "StringName": return '"' + default_value + '"' if _type == "RID": return "RID()"