File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -1078,6 +1078,13 @@ void GDScript::set_path_cache(const String &p_path) {
10781078 if (is_root_script ()) {
10791079 Script::set_path_cache (p_path);
10801080 }
1081+
1082+ path = p_path;
1083+ path_valid = true ;
1084+
1085+ for (KeyValue<StringName, Ref<GDScript>> &kv : subclasses) {
1086+ kv.value ->set_path_cache (p_path);
1087+ }
10811088}
10821089
10831090void GDScript::set_path (const String &p_path, bool p_take_over) {
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ thread_local SafeBinaryMutex<GDScriptCache::BINARY_MUTEX_TAG>::TLSData SafeBinar
153153SafeBinaryMutex<GDScriptCache::BINARY_MUTEX_TAG> GDScriptCache::mutex;
154154
155155void GDScriptCache::move_script (const String &p_from, const String &p_to) {
156- if (singleton == nullptr || p_from == p_to) {
156+ if (singleton == nullptr || p_from == p_to || p_from. is_empty () ) {
157157 return ;
158158 }
159159
You can’t perform that action at this time.
0 commit comments