Selaa lähdekoodia

Merge pull request #1351 from Daylily-Zeleen/daylily-zeleen/remove_namespace_in_global_constants_binding

Remove "godot" namespace when binding global constants.
Rémi Verschelde 1 vuosi sitten
vanhempi
commit
64529361b4
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      binding_generator.py

+ 2 - 2
binding_generator.py

@@ -1778,9 +1778,9 @@ def generate_global_constant_binds(api, output_dir):
             continue
             continue
 
 
         if enum_def["is_bitfield"]:
         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:
         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.
     # 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);")
     header.append(f"VARIANT_ENUM_CAST(godot::Variant::Type);")