Fix index out of size error of image.cpp

This commit is contained in:
volzhs 2018-05-29 14:13:05 +09:00
parent 38284bc6da
commit 224ca96c57
1 changed files with 1 additions and 0 deletions

View File

@ -97,6 +97,7 @@ Ref<Texture> EditorTexturePreviewPlugin::generate(const RES &p_from) {
if (img.is_null() || img->empty())
return Ref<Texture>();
img = img->duplicate();
img->clear_mipmaps();
int thumbnail_size = EditorSettings::get_singleton()->get("filesystem/file_dialog/thumbnail_size");