@modoki/engine / index / invalidateTexture
Function: invalidateTexture()
invalidateTexture(
ref):void
Drop the shared cache's textures for a ref's variants so a subsequent load re-fetches + re-transcodes the freshly-converted files. Called by the editor's texture re-import + model re-import, both of which then reload the active scene — materials rebuild and re-acquire fresh bytes. The old THREE.Texture instances are force-disposed here regardless of refcount; any outstanding releaseTexture3D on them becomes a safe no-op (the entry is already gone), so there's no double dispose.
Parameters
ref
string
Returns
void