diff options
| author | Juan Linietsky | 2016-01-14 11:06:20 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2016-01-14 11:06:20 -0300 |
| commit | 4248c84e2089b953e00a163962b5b7f19d95e688 (patch) | |
| tree | a3b72cadad02a816dd1c78ecb425992a883c172b /core/io/resource_format_xml.cpp | |
| parent | e2be837520c0a6e4fed19b714f0477cb9c32eb78 (diff) | |
| download | godot-4248c84e2089b953e00a163962b5b7f19d95e688.tar.gz godot-4248c84e2089b953e00a163962b5b7f19d95e688.tar.zst godot-4248c84e2089b953e00a163962b5b7f19d95e688.zip | |
-Make sure scenes properly update when switching tabs, even if sub-instances changed. Fixes #3201
Diffstat (limited to 'core/io/resource_format_xml.cpp')
| -rw-r--r-- | core/io/resource_format_xml.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/io/resource_format_xml.cpp b/core/io/resource_format_xml.cpp index 74813d24f..8c8d79948 100644 --- a/core/io/resource_format_xml.cpp +++ b/core/io/resource_format_xml.cpp @@ -1570,7 +1570,9 @@ Error ResourceInteractiveLoaderXML::poll() { if (main) { f->close(); resource=res; - resource->set_path(res_path); + if (!ResourceCache::has(res_path)) { + resource->set_path(res_path); + } error=ERR_FILE_EOF; return error; |
