summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2019-01-25 13:39:43 -0300
committerJuan Linietsky <reduzio@gmail.com>2019-01-25 13:40:23 -0300
commit32fa136cc7db029fbe4656a89d51d2b97b4bc199 (patch)
tree6511ce3288de45bfc85baaf85e06e82335936b75 /editor
parent3b2e854f4bbcac2f5ed752c95a7d2dbcd5f5f915 (diff)
Ability to keep images in ImageTexture cached while using editor, fixes #25243
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_node.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index 719130621e..75f01ef055 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -4760,6 +4760,8 @@ EditorNode::EditorNode() {
ResourceLoader::clear_translation_remaps(); //no remaps using during editor
ResourceLoader::clear_path_remaps();
+ ImageTexture::set_keep_images_cached(true);
+
InputDefault *id = Object::cast_to<InputDefault>(Input::get_singleton());
if (id) {