summaryrefslogtreecommitdiff
path: root/tools/editor/editor_resource_preview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/editor/editor_resource_preview.cpp')
-rw-r--r--tools/editor/editor_resource_preview.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/editor/editor_resource_preview.cpp b/tools/editor/editor_resource_preview.cpp
index 6afc3e2a34..46b81dc072 100644
--- a/tools/editor/editor_resource_preview.cpp
+++ b/tools/editor/editor_resource_preview.cpp
@@ -267,6 +267,8 @@ void EditorResourcePreview::_thread() {
memdelete(f);
}
+ cache_valid=false;
+
if (cache_valid) {
texture = ResourceLoader::load(cache_base+".png","ImageTexture",true);