Skip to content

Commit

Permalink
Merge pull request #1351 from Daylily-Zeleen/daylily-zeleen/remove_na…
Browse files Browse the repository at this point in the history
…mespace_in_global_constants_binding

Remove "godot" namespace when binding global constants.
  • Loading branch information
akien-mga authored Jan 11, 2024
2 parents edf1637 + bd40a94 commit 6452936
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions binding_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1778,9 +1778,9 @@ def generate_global_constant_binds(api, output_dir):
continue

if enum_def["is_bitfield"]:
header.append(f'VARIANT_BITFIELD_CAST(godot::{enum_def["name"]});')
header.append(f'VARIANT_BITFIELD_CAST({enum_def["name"]});')
else:
header.append(f'VARIANT_ENUM_CAST(godot::{enum_def["name"]});')
header.append(f'VARIANT_ENUM_CAST({enum_def["name"]});')

# Variant::Type is not a global enum, but only one line, it is worth to place in this file instead of creating new file.
header.append(f"VARIANT_ENUM_CAST(godot::Variant::Type);")
Expand Down

0 comments on commit 6452936

Please sign in to comment.