Skip to content

Commit 165b62a

Browse files
committed
imp: remove old field texture preload hack
1 parent 89c1f18 commit 165b62a

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/client/components/Fields.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -488,16 +488,6 @@ export function FieldFile({ world, label, hint, kind: kindName, value, onChange
488488
if (nRef.current !== n) return
489489
// cache file locally so this client can insta-load it
490490
world.loader.insert(kind.type, url, file)
491-
492-
// Preload texture if it's a texture type
493-
if (kind.type === 'texture') {
494-
try {
495-
await world.loader.load('texture', url)
496-
} catch (err) {
497-
console.warn('[FieldFile] Failed to preload texture:', err)
498-
}
499-
}
500-
501491
// apply!
502492
setLoading(null)
503493
onChange(newValue)

0 commit comments

Comments
 (0)