This commit is contained in:
zsviczian
2024-05-26 22:34:59 +02:00
parent c4e95d9207
commit 9eff79733c
14 changed files with 341 additions and 88 deletions

View File

@@ -361,7 +361,8 @@ export class EmbeddedFilesLoader {
isMask,
};
const shouldUseCache = this.plugin.settings.allowImageCacheInScene && file && imageCache.isReady();
const hasColorMap = Boolean(inFile instanceof EmbeddedFile ? inFile.colorMap : null);
const shouldUseCache = !hasColorMap && this.plugin.settings.allowImageCacheInScene && file && imageCache.isReady();
const cacheKey:ImageKey = {
filepath: file.path,
blockref: null,