From a08906112077df67407765e7319068d03d36961b Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sun, 27 Jan 2019 13:39:16 -0300 Subject: Fix pixelized previews, but also instances of breaking ImageTexture cache. Closes #25378. --- editor/plugins/asset_library_editor_plugin.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'editor/plugins/asset_library_editor_plugin.cpp') diff --git a/editor/plugins/asset_library_editor_plugin.cpp b/editor/plugins/asset_library_editor_plugin.cpp index a42765df6b..c68023ee9b 100644 --- a/editor/plugins/asset_library_editor_plugin.cpp +++ b/editor/plugins/asset_library_editor_plugin.cpp @@ -174,6 +174,7 @@ void EditorAssetLibraryItemDescription::set_image(int p_type, int p_index, const if (preview_images[i].is_video) { Ref overlay = get_icon("PlayOverlay", "EditorIcons")->get_data(); Ref thumbnail = p_image->get_data(); + thumbnail = thumbnail->duplicate(); Point2 overlay_pos = Point2((thumbnail->get_width() - overlay->get_width()) / 2, (thumbnail->get_height() - overlay->get_height()) / 2); thumbnail->lock(); -- cgit v1.2.3