Fix StringName default values.

This commit is contained in:
Relintai 2023-05-31 17:29:01 +02:00
parent 52b5a8e4db
commit 7aeb3d3c4d

View File

@ -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()"