From dde0bbb93d33ebf7b8550da93ce5773d76b30053 Mon Sep 17 00:00:00 2001 From: Daylily-Zeleen Date: Sun, 7 Jan 2024 15:24:02 +0800 Subject: [PATCH] Remove "godot" namespace when binding global constants. (cherry picked from commit bd40a94424ca91bc2d2bc76f2a02ac7f8bd5d3cf) --- binding_generator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/binding_generator.py b/binding_generator.py index 79b54136..aa77a5cb 100644 --- a/binding_generator.py +++ b/binding_generator.py @@ -1716,9 +1716,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);")