mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Correctly set GDScript internal path for shallow scripts
This commit is contained in:
parent
78d91947f6
commit
2ce3be221a
2 changed files with 8 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue