diff options
| author | Rémi Verschelde | 2018-05-29 08:23:10 +0200 |
|---|---|---|
| committer | GitHub | 2018-05-29 08:23:10 +0200 |
| commit | e2bf28e80599d5bbe362410f2261a1abf495afa5 (patch) | |
| tree | 76f810cefb7542fc4e3040d52810899a5e4ea40c | |
| parent | 5877863b23a4f4510b6f060287c503a4de61f2a2 (diff) | |
| parent | 224ca96c57284ffd2a58fcc9803c8d3f1b5424f6 (diff) | |
| download | godot-e2bf28e80599d5bbe362410f2261a1abf495afa5.tar.gz godot-e2bf28e80599d5bbe362410f2261a1abf495afa5.tar.zst godot-e2bf28e80599d5bbe362410f2261a1abf495afa5.zip | |
| -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 ac4166bb9..d065a756b 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"); |
