mirror of
https://github.com/Relintai/gdnative_cpp.git
synced 2024-11-14 10:27:17 +01:00
Fix StringName default values.
This commit is contained in:
parent
52b5a8e4db
commit
7aeb3d3c4d
@ -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()"
|
||||
|
Loading…
Reference in New Issue
Block a user