From 711ffabcfe28d7ca7de03a65e8cd37fbc601ef33 Mon Sep 17 00:00:00 2001 From: "ocean (they/them)" Date: Thu, 31 Aug 2023 13:49:04 -0400 Subject: [PATCH] GDScript: fix subclass methods not inheriting RPC info --- modules/gdscript/gdscript.cpp | 16 ------------- modules/gdscript/gdscript.h | 1 - modules/gdscript/gdscript_compiler.cpp | 32 +++++++++++++++++++------- modules/gdscript/gdscript_compiler.h | 2 +- 4 files changed, 25 insertions(+), 26 deletions(-) diff --git a/modules/gdscript/gdscript.cpp b/modules/gdscript/gdscript.cpp index ccbcb3ee96e..6623f96c2a6 100644 --- a/modules/gdscript/gdscript.cpp +++ b/modules/gdscript/gdscript.cpp @@ -1399,22 +1399,6 @@ void GDScript::_save_orphaned_subclasses(ClearData *p_clear_data) { } } -void GDScript::_init_rpc_methods_properties() { - // Copy the base rpc methods so we don't mask their IDs. - rpc_config.clear(); - if (base.is_valid()) { - rpc_config = base->rpc_config.duplicate(); - } - - // RPC Methods - for (KeyValue &E : member_functions) { - Variant config = E.value->get_rpc_config(); - if (config.get_type() != Variant::NIL) { - rpc_config[E.value->get_name()] = config; - } - } -} - #ifdef DEBUG_ENABLED String GDScript::debug_get_script_name(const Ref