summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorvolzhs <volzhs@gmail.com>2016-06-01 01:48:49 +0900
committervolzhs <volzhs@gmail.com>2016-06-01 01:48:49 +0900
commite4f68d08ebbfafec43d97763facc964026483be1 (patch)
treefcf52abfe66b81988f9351f36af6e1cacb083433 /tools
parent4f596e1924386500fa723317c68584e1b22f4b91 (diff)
fix error when open scene or switch to another scene
## Error message on console ## ``` no access to ID:18723 ERROR: FileAccessWindows::_get_modified_time: Method/Function Failed, returning: 0 At: drivers\windows\file_access_windows.cpp:251 ```
Diffstat (limited to 'tools')
-rw-r--r--tools/editor/editor_resource_preview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/editor/editor_resource_preview.cpp b/tools/editor/editor_resource_preview.cpp
index 13b424c231..05b935f26c 100644
--- a/tools/editor/editor_resource_preview.cpp
+++ b/tools/editor/editor_resource_preview.cpp
@@ -131,7 +131,6 @@ void EditorResourcePreview::_thread() {
//print_line("pop from queue "+item.path);
- uint64_t modtime = FileAccess::get_modified_time(item.path);
int thumbnail_size = EditorSettings::get_singleton()->get("file_dialog/thumbnail_size");
thumbnail_size*=EDSCALE;
@@ -168,6 +167,7 @@ void EditorResourcePreview::_thread() {
texture=_generate_preview(item,cache_base);
} else {
+ uint64_t modtime = FileAccess::get_modified_time(item.path);
int tsize = f->get_line().to_int64();
uint64_t last_modtime = f->get_line().to_int64();