aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/editor_resource_preview.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2016-12-21 14:20:35 -0300
committerJuan Linietsky2016-12-21 14:22:17 -0300
commit37f558cd7b2308f6442f74c5265f12425d9887c8 (patch)
tree88901b350f7674013f7aecf8fddf3f1c3dbd7399 /tools/editor/editor_resource_preview.cpp
parent72b844c34999d8615450798ed1f27ef24a72d8ce (diff)
downloadgodot-37f558cd7b2308f6442f74c5265f12425d9887c8.tar.gz
godot-37f558cd7b2308f6442f74c5265f12425d9887c8.tar.zst
godot-37f558cd7b2308f6442f74c5265f12425d9887c8.zip
Some BRDF fixes
Diffstat (limited to '')
-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 6afc3e2a3..46b81dc07 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);