Temporary fix for issue in JSON export with NIL in operators

pull/602/head
Bastiaan Olij 2021-09-27 22:49:51 +10:00
parent 92d25bcda6
commit d5e0fc8e7c
1 changed files with 4 additions and 1 deletions

View File

@ -164,7 +164,10 @@ def generate_builtin_bindings(api, output_dir, build_config):
if "operators" in builtin_api: if "operators" in builtin_api:
for operator in builtin_api["operators"]: for operator in builtin_api["operators"]:
if "right_type" in operator: if "right_type" in operator:
if is_included(operator["right_type"], class_name): # FIXME Temporary workaround for incorrect JSON
if operator["right_type"] == "Nil":
used_classes.add("Variant")
elif is_included(operator["right_type"], class_name):
used_classes.add(operator["right_type"]) used_classes.add(operator["right_type"])
for type_name in fully_used_classes: for type_name in fully_used_classes: