summaryrefslogtreecommitdiffstats
path: root/scene/resources/packed_scene.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-02-29 13:54:07 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-02-29 13:54:07 +0100
commit172b2546871ae6f6e3c1d63fd2b4c40a7a9a9c3d (patch)
tree73627f420c0d622ff4358b665a3403381404438f /scene/resources/packed_scene.cpp
parentda916221a71eaa0a66b8e84bd6ce05229786aa12 (diff)
parent5e144022e70975a246a14f0343215cde92893b7b (diff)
downloadredot-engine-172b2546871ae6f6e3c1d63fd2b4c40a7a9a9c3d.tar.gz
Merge pull request #88664 from RandomShaper/res_load_modes
Enhance cache modes in resource loading
Diffstat (limited to 'scene/resources/packed_scene.cpp')
-rw-r--r--scene/resources/packed_scene.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/scene/resources/packed_scene.cpp b/scene/resources/packed_scene.cpp
index a5759dc117..2c92a3edb3 100644
--- a/scene/resources/packed_scene.cpp
+++ b/scene/resources/packed_scene.cpp
@@ -2101,6 +2101,11 @@ void PackedScene::set_path(const String &p_path, bool p_take_over) {
Resource::set_path(p_path, p_take_over);
}
+void PackedScene::set_path_cache(const String &p_path) {
+ state->set_path(p_path);
+ Resource::set_path_cache(p_path);
+}
+
void PackedScene::reset_state() {
clear();
}