From 8c5e0387444de97ea0191ec9d770ce807fd8a080 Mon Sep 17 00:00:00 2001 From: janos-ijgyarto <16936534+janos-ijgyarto@users.noreply.github.com> Date: Fri, 10 Oct 2025 00:11:59 +0200 Subject: [PATCH] Added missing namespace prefixes to GDVIRTUAL macros --- binding_generator.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/binding_generator.py b/binding_generator.py index d5ffc1456..6a3d24884 100644 --- a/binding_generator.py +++ b/binding_generator.py @@ -97,7 +97,7 @@ def generate_virtual_version(argcount, const=False, returns=False, required=Fals sproto = str(argcount) method_info = "" - method_flags = "METHOD_FLAG_VIRTUAL" + method_flags = "::godot::MethodFlags::METHOD_FLAG_VIRTUAL" if returns: sproto += "R" s = s.replace("$RET", "m_ret,") @@ -110,14 +110,14 @@ def generate_virtual_version(argcount, const=False, returns=False, required=Fals if const: sproto += "C" - method_flags += " | METHOD_FLAG_CONST" + method_flags += " | ::godot::MethodFlags::METHOD_FLAG_CONST" s = s.replace("$CONST", "const") else: s = s.replace("$CONST ", "") if required: sproto += "_REQUIRED" - method_flags += " | METHOD_FLAG_VIRTUAL_REQUIRED" + method_flags += " | ::godot::MethodFlags::METHOD_FLAG_VIRTUAL_REQUIRED" s = s.replace( "$REQCHECK", 'ERR_PRINT_ONCE("Required virtual method " + get_class() + "::" + #m_name + " must be overridden before calling.");',