summaryrefslogtreecommitdiffstats
path: root/core/io/resource_format_binary.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-01-14 11:06:20 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-01-14 11:06:20 -0300
commit4248c84e2089b953e00a163962b5b7f19d95e688 (patch)
treea3b72cadad02a816dd1c78ecb425992a883c172b /core/io/resource_format_binary.cpp
parente2be837520c0a6e4fed19b714f0477cb9c32eb78 (diff)
downloadredot-engine-4248c84e2089b953e00a163962b5b7f19d95e688.tar.gz
-Make sure scenes properly update when switching tabs, even if sub-instances changed. Fixes #3201
Diffstat (limited to 'core/io/resource_format_binary.cpp')
-rw-r--r--core/io/resource_format_binary.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/io/resource_format_binary.cpp b/core/io/resource_format_binary.cpp
index 796dcde3d0..c008c3f9a4 100644
--- a/core/io/resource_format_binary.cpp
+++ b/core/io/resource_format_binary.cpp
@@ -725,7 +725,8 @@ Error ResourceInteractiveLoaderBinary::poll(){
}
} else {
- path=res_path;
+ if (!ResourceCache::has(res_path))
+ path=res_path;
}
uint64_t offset = internal_resources[s].offset;