summaryrefslogtreecommitdiff
path: root/editor/plugins/packed_scene_translation_parser_plugin.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-02-12 11:58:19 +0100
committerGitHub <noreply@github.com>2021-02-12 11:58:19 +0100
commit49122588391b5159fada6d33f136d169b5a01ae5 (patch)
treeb675cbc225b2246fede39ba050dd5f9ef5d9046a /editor/plugins/packed_scene_translation_parser_plugin.cpp
parent44e291a250c913e2308da5fcbdc1f48becdc8a1e (diff)
parentf8d03b98e7eeeb726af4f653f1fde8b063cbad14 (diff)
Merge pull request #45903 from reduz/improve-resoucre-load-cache
Improve resource load cache
Diffstat (limited to 'editor/plugins/packed_scene_translation_parser_plugin.cpp')
-rw-r--r--editor/plugins/packed_scene_translation_parser_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/packed_scene_translation_parser_plugin.cpp b/editor/plugins/packed_scene_translation_parser_plugin.cpp
index 1f20a87565..0a949c8610 100644
--- a/editor/plugins/packed_scene_translation_parser_plugin.cpp
+++ b/editor/plugins/packed_scene_translation_parser_plugin.cpp
@@ -42,7 +42,7 @@ Error PackedSceneEditorTranslationParserPlugin::parse_file(const String &p_path,
// These properties are translated with the tr() function in the C++ code when being set or updated.
Error err;
- RES loaded_res = ResourceLoader::load(p_path, "PackedScene", false, &err);
+ RES loaded_res = ResourceLoader::load(p_path, "PackedScene", ResourceFormatLoader::CACHE_MODE_REUSE, &err);
if (err) {
ERR_PRINT("Failed to load " + p_path);
return err;