From d5fae879f1e57c0e793fa5b4389f08fc07c0badd Mon Sep 17 00:00:00 2001 From: Thaddeus Crews Date: Mon, 12 Jan 2026 10:27:55 -0600 Subject: [PATCH] Core: Don't strip data in `class_get_method_list` --- core/core_bind.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/core/core_bind.cpp b/core/core_bind.cpp index 9e1bd645268..2fd854f48e8 100644 --- a/core/core_bind.cpp +++ b/core/core_bind.cpp @@ -1701,14 +1701,8 @@ TypedArray ClassDB::class_get_method_list(const StringName &p_class, ::ClassDB::get_method_list(p_class, &methods, p_no_inheritance); TypedArray ret; - for (const MethodInfo &E : methods) { -#ifdef DEBUG_ENABLED - ret.push_back(E.operator Dictionary()); -#else - Dictionary dict; - dict["name"] = E.name; - ret.push_back(dict); -#endif // DEBUG_ENABLED + for (const MethodInfo &method : methods) { + ret.push_back(method.operator Dictionary()); } return ret;