summaryrefslogtreecommitdiffstats
path: root/binding_generator.py
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-09-07 20:08:56 +0200
committerGitHub <noreply@github.com>2021-09-07 20:08:56 +0200
commit466f2cdebff51cbb71ffac2d6a758b99e9a28157 (patch)
tree2fb8ca5b730ec5fe53ff678ca1276681ff555265 /binding_generator.py
parent6e1af3bedbb8e06248f97446ed55a24175519d3e (diff)
parent024ffef50f041a489c8a74e69a3a5e453e2ee3fb (diff)
downloadredot-cpp-466f2cdebff51cbb71ffac2d6a758b99e9a28157.tar.gz
Merge pull request #590 from Faless/generator/fix_byte_array_default
Fix binding when default parameter is a PoolByteArray.
Diffstat (limited to 'binding_generator.py')
-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