Correctly set GDScript internal path for shallow scripts

This commit is contained in:
HolonProduction 2025-12-04 19:50:27 +01:00
parent 78d91947f6
commit 2ce3be221a
2 changed files with 8 additions and 1 deletions

View file

@ -153,7 +153,7 @@ thread_local SafeBinaryMutex<GDScriptCache::BINARY_MUTEX_TAG>::TLSData SafeBinar
SafeBinaryMutex<GDScriptCache::BINARY_MUTEX_TAG> GDScriptCache::mutex;
void GDScriptCache::move_script(const String &p_from, const String &p_to) {
if (singleton == nullptr || p_from == p_to) {
if (singleton == nullptr || p_from == p_to || p_from.is_empty()) {
return;
}