Merge pull request #130 from marcelofg55/int_real_arrays

Fix bindings for PoolIntArray and PoolRealArray
pull/133/head
Thomas Herzog 2018-05-09 10:22:59 +02:00 committed by GitHub
commit d8becfbe90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -180,7 +180,7 @@ def generate_class_header(used_classes, c):
return default_value.lower() return default_value.lower()
if _type == "Array": if _type == "Array":
return "Array()" return "Array()"
if _type in ["PoolVector2Array", "PoolStringArray", "PoolVector3Array", "PoolColorArray"]: if _type in ["PoolVector2Array", "PoolStringArray", "PoolVector3Array", "PoolColorArray", "PoolIntArray", "PoolRealArray"]:
return _type + "()" return _type + "()"
if _type == "Vector2": if _type == "Vector2":
return "Vector2" + default_value return "Vector2" + default_value
@ -701,6 +701,8 @@ def is_core_type(name):
"PoolVector2Array", "PoolVector2Array",
"PoolVector3Array", "PoolVector3Array",
"PoolColorArray", "PoolColorArray",
"PoolIntArray",
"PoolRealArray",
"Quat", "Quat",
"Rect2", "Rect2",
"AABB", "AABB",