mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
GDScript: fix subclass methods not inheriting RPC info
This commit is contained in:
parent
0bca424239
commit
711ffabcfe
4 changed files with 25 additions and 26 deletions
|
@ -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<StringName, GDScriptFunction *> &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<Script> &p_script) {
|
||||
if (p_script.is_valid()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue