diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2021-07-17 18:06:50 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2021-07-17 18:06:50 +0200 |
commit | 024ffef50f041a489c8a74e69a3a5e453e2ee3fb (patch) | |
tree | 6102dfe667976ec5c2e73cefb7a5b342a8de3abb /binding_generator.py | |
parent | e08ecdc28c5409cb5366027227e996c342dcee93 (diff) | |
download | redot-cpp-024ffef50f041a489c8a74e69a3a5e453e2ee3fb.tar.gz |
Fix binding when default parameter is a PoolByteArray.
Like done for the other pool array types.
Diffstat (limited to 'binding_generator.py')
-rw-r--r-- | binding_generator.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/binding_generator.py b/binding_generator.py index ba2ceea..1b612c2 100644 --- a/binding_generator.py +++ b/binding_generator.py @@ -294,7 +294,7 @@ def generate_class_header(used_classes, c, use_template_get_node): return default_value.lower() if _type == "Array": return "Array()" - if _type in ["PoolVector2Array", "PoolStringArray", "PoolVector3Array", "PoolColorArray", "PoolIntArray", "PoolRealArray"]: + if _type in ["PoolVector2Array", "PoolStringArray", "PoolVector3Array", "PoolColorArray", "PoolIntArray", "PoolRealArray", "PoolByteArray"]: return _type + "()" if _type == "Vector2": return "Vector2" + default_value |