From d5e0fc8e7ce97d64e8f068951241bce61e374a3e Mon Sep 17 00:00:00 2001 From: Bastiaan Olij Date: Mon, 27 Sep 2021 22:49:51 +1000 Subject: [PATCH] Temporary fix for issue in JSON export with NIL in operators --- binding_generator.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/binding_generator.py b/binding_generator.py index dad8a48f..02e78db2 100644 --- a/binding_generator.py +++ b/binding_generator.py @@ -164,7 +164,10 @@ def generate_builtin_bindings(api, output_dir, build_config): if "operators" in builtin_api: for operator in builtin_api["operators"]: 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"]) for type_name in fully_used_classes: