Skip to content

Commit 6452936

Browse files
authored
Merge pull request #1351 from Daylily-Zeleen/daylily-zeleen/remove_namespace_in_global_constants_binding
Remove "godot" namespace when binding global constants.
2 parents edf1637 + bd40a94 commit 6452936

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

binding_generator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1778,9 +1778,9 @@ def generate_global_constant_binds(api, output_dir):
17781778
continue
17791779

17801780
if enum_def["is_bitfield"]:
1781-
header.append(f'VARIANT_BITFIELD_CAST(godot::{enum_def["name"]});')
1781+
header.append(f'VARIANT_BITFIELD_CAST({enum_def["name"]});')
17821782
else:
1783-
header.append(f'VARIANT_ENUM_CAST(godot::{enum_def["name"]});')
1783+
header.append(f'VARIANT_ENUM_CAST({enum_def["name"]});')
17841784

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

0 commit comments

Comments
 (0)