Bugfixes on the filesystem dock

This commit is contained in:
groud
2018-09-14 13:59:19 +02:00
parent 028813fb9c
commit 59536b98b9
3 changed files with 37 additions and 22 deletions

View File

@@ -154,7 +154,7 @@ void EditorResourcePreview::_generate_preview(Ref<ImageTexture> &r_texture, Ref<
}
r_texture = generated;
if (preview_generators[i]->should_generate_small_preview()) {
if (r_texture.is_valid() && preview_generators[i]->should_generate_small_preview()) {
int small_thumbnail_size = EditorNode::get_singleton()->get_theme_base()->get_icon("Object", "EditorIcons")->get_width(); // Kind of a workaround to retreive the default icon size
small_thumbnail_size *= EDSCALE;