You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Fix index out of size error of image.cpp
This commit is contained in:
@@ -97,6 +97,7 @@ Ref<Texture> EditorTexturePreviewPlugin::generate(const RES &p_from) {
|
|||||||
if (img.is_null() || img->empty())
|
if (img.is_null() || img->empty())
|
||||||
return Ref<Texture>();
|
return Ref<Texture>();
|
||||||
|
|
||||||
|
img = img->duplicate();
|
||||||
img->clear_mipmaps();
|
img->clear_mipmaps();
|
||||||
|
|
||||||
int thumbnail_size = EditorSettings::get_singleton()->get("filesystem/file_dialog/thumbnail_size");
|
int thumbnail_size = EditorSettings::get_singleton()->get("filesystem/file_dialog/thumbnail_size");
|
||||||
|
|||||||
Reference in New Issue
Block a user