diff options
| author | David Snopek <dsnopek@gmail.com> | 2024-06-14 08:15:04 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-14 08:15:04 -0500 |
| commit | ee9acbcf109486eec3827d84ff033387762bccb7 (patch) | |
| tree | 079525bc7c90c64003a9f0d4a2827a5e79c8b16f | |
| parent | 64f1bc847aa0ebc99506754b4925a77561c4179c (diff) | |
| parent | 37e7a6da0536d496e2e3773911fdf300a2c5522d (diff) | |
| download | redot-cpp-ee9acbcf109486eec3827d84ff033387762bccb7.tar.gz | |
Merge pull request #1488 from AThousandShips/default_node_path
Add default argument processing for `NodePath`
| -rw-r--r-- | binding_generator.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/binding_generator.py b/binding_generator.py index a722478..67a7d5f 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 |
