diff options
author | volzhs <volzhs@gmail.com> | 2018-05-29 14:13:05 +0900 |
---|---|---|
committer | volzhs <volzhs@gmail.com> | 2018-05-29 14:13:05 +0900 |
commit | 224ca96c57284ffd2a58fcc9803c8d3f1b5424f6 (patch) | |
tree | c2f34703f25554060b0cd32a40b77d18c530b77a /editor/plugins | |
parent | 38284bc6da801dcc0e1a6b47580a20b5ade32f06 (diff) |
Fix index out of size error of image.cpp
Diffstat (limited to 'editor/plugins')
-rw-r--r-- | editor/plugins/editor_preview_plugins.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/plugins/editor_preview_plugins.cpp b/editor/plugins/editor_preview_plugins.cpp index ac4166bb98..d065a756b4 100644 --- a/editor/plugins/editor_preview_plugins.cpp +++ b/editor/plugins/editor_preview_plugins.cpp @@ -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"); |