Skip to content

Commit

Permalink
Temporary fix for issue in JSON export with NIL in operators
Browse files Browse the repository at this point in the history
  • Loading branch information
BastiaanOlij committed Sep 27, 2021
1 parent 92d25bc commit d5e0fc8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion binding_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d5e0fc8

Please sign in to comment.