diff --git a/binding_generator.py b/binding_generator.py index a7224786..67a7d5f0 100644 --- a/binding_generator.py +++ b/binding_generator.py @@ -2567,6 +2567,7 @@ def correct_default_value(value, type_name): "null": "nullptr", '""': "String()", '&""': "StringName()", + '^""': "NodePath()", "[]": "Array()", "{}": "Dictionary()", "Transform2D(1, 0, 0, 1, 0, 0)": "Transform2D()", # Default transform. @@ -2580,6 +2581,8 @@ def correct_default_value(value, type_name): return f"{{}}" if value.startswith("&"): return value[1::] + if value.startswith("^"): + return value[1::] return value