From b832d2fab957f87772f12a7a79454f647d20f879 Mon Sep 17 00:00:00 2001 From: maj00r Date: Mon, 16 Nov 2026 02:13:09 +0100 Subject: [PATCH] fix(editor): the image of a material with no texture in its first slot is let go of too Its normal and specular maps were read with it and stayed in the memory: the trim passed over every image with no texture of its own, the material along with it. --- application/editormodetextures.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/editormodetextures.cpp b/application/editormodetextures.cpp index ecf846431..e3423de5e 100644 --- a/application/editormodetextures.cpp +++ b/application/editormodetextures.cpp @@ -125,7 +125,7 @@ void editor_mode::thumbnails_trim() for (auto entry{browser.thumbnails.begin()}; entry != browser.thumbnails.end();) { auto const &thumbnail{entry->second}; - if (false == browser.refresh && (thumbnail.texture == null_handle || now - thumbnail.shown < kept)) + if (false == browser.refresh && ((thumbnail.texture == null_handle && thumbnail.material == null_handle) || now - thumbnail.shown < kept)) { ++entry; continue;