TextureCache.preloadAll swallows per-texture failures (console.warn + continue) and then unconditionally sets isPreloaded = true.
A later preloadAll therefore returns immediately, so a 404'd wall/floor/tent never retries for the rest of the session. get() stays undefined; getOrLoad may start a sync loader that also fails silently.
Pinned by texture-cache.spec.ts ("preloadAll still marks isPreloaded after a per-texture failure and does not retry").
try{awaitthis.loadTexture(path);}catch(error){console.warn(`Failed to preload texture: ${path}`,error);}// ...
this.isPreloaded=true;
`TextureCache.preloadAll` swallows per-texture failures (`console.warn` + continue) and then unconditionally sets `isPreloaded = true`.
A later `preloadAll` therefore returns immediately, so a 404'd wall/floor/tent never retries for the rest of the session. `get()` stays undefined; `getOrLoad` may start a *sync* loader that also fails silently.
Pinned by `texture-cache.spec.ts` ("preloadAll still marks isPreloaded after a per-texture failure and does not retry").
```ts
try {
await this.loadTexture(path);
} catch (error) {
console.warn(`Failed to preload texture: ${path}`, error);
}
// ...
this.isPreloaded = true;
```
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
TextureCache.preloadAllswallows per-texture failures (console.warn+ continue) and then unconditionally setsisPreloaded = true.A later
preloadAlltherefore returns immediately, so a 404'd wall/floor/tent never retries for the rest of the session.get()stays undefined;getOrLoadmay start a sync loader that also fails silently.Pinned by
texture-cache.spec.ts("preloadAll still marks isPreloaded after a per-texture failure and does not retry").Fixed in
spikersoft-angularPR #823 (a0f0ccd9). Closing.