From d0edd36f80d47e490331e1ef30f010f75220fb5f Mon Sep 17 00:00:00 2001 From: Wei Guo Date: Tue, 25 Oct 2022 03:23:14 +0800 Subject: Fix built-in script path of GDScript --- modules/gdscript/gdscript.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/gdscript/gdscript.cpp') diff --git a/modules/gdscript/gdscript.cpp b/modules/gdscript/gdscript.cpp index 0a9dad04c7..b4da9c1224 100644 --- a/modules/gdscript/gdscript.cpp +++ b/modules/gdscript/gdscript.cpp @@ -1050,6 +1050,11 @@ Error GDScript::load_byte_code(const String &p_path) { return ERR_COMPILATION_FAILED; } +void GDScript::set_path(const String &p_path, bool p_take_over) { + Script::set_path(p_path, p_take_over); + this->path = p_path; +} + Error GDScript::load_source_code(const String &p_path) { Vector sourcef; Error err; -- cgit v1.2.3