diff --git a/modules/gdscript/gdscript.cpp b/modules/gdscript/gdscript.cpp index 7a3b9dc5975..8f870368ce8 100644 --- a/modules/gdscript/gdscript.cpp +++ b/modules/gdscript/gdscript.cpp @@ -1354,7 +1354,7 @@ GDScript::GDScript() : path = vformat("gdscript://%d.gd", get_instance_id()); } -void GDScript::_save_orphaned_subclasses(GDScript::ClearData *p_clear_data) { +void GDScript::_save_orphaned_subclasses(ClearData *p_clear_data) { struct ClassRefWithName { ObjectID id; String fully_qualified_name; @@ -1411,7 +1411,31 @@ void GDScript::_init_rpc_methods_properties() { } } -void GDScript::clear(GDScript::ClearData *p_clear_data) { +#ifdef DEBUG_ENABLED +String GDScript::debug_get_script_name(const Ref