diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-05-29 08:23:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-29 08:23:10 +0200 |
commit | e2bf28e80599d5bbe362410f2261a1abf495afa5 (patch) | |
tree | 76f810cefb7542fc4e3040d52810899a5e4ea40c /editor/plugins/editor_preview_plugins.cpp | |
parent | 5877863b23a4f4510b6f060287c503a4de61f2a2 (diff) | |
parent | 224ca96c57284ffd2a58fcc9803c8d3f1b5424f6 (diff) |
Merge pull request #19238 from volzhs/fix-image-out-of-size-error
Fix index out of size error of image.cpp
Diffstat (limited to 'editor/plugins/editor_preview_plugins.cpp')
-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"); |