summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-07-17 18:06:50 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-07-17 18:06:50 +0200
commit024ffef50f041a489c8a74e69a3a5e453e2ee3fb (patch)
tree6102dfe667976ec5c2e73cefb7a5b342a8de3abb
parente08ecdc28c5409cb5366027227e996c342dcee93 (diff)
downloadredot-cpp-024ffef50f041a489c8a74e69a3a5e453e2ee3fb.tar.gz
Fix binding when default parameter is a PoolByteArray.
Like done for the other pool array types.
-rw-r--r--binding_generator.py2
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