Parcourir la source

LDrawLoader: Refactor, cache pre-parsed file contents (#23157)

* this.cache -> this.fileCache

* Add in parsed data cache

* small fixes

* material fixes

* Remove FileCache

* Use in order materials from the local scope if possible

* simplify fetchData, ensure fetch errors are caught, throw a real error

* clone result, material simplification

* improve clone result perf

* Fix colors

* simplify cache API
Garrett Johnson il y a 3 ans
Parent
commit
bd23028479
1 fichiers modifiés avec 945 ajouts et 801 suppressions
  1. 945 801
      examples/jsm/loaders/LDrawLoader.js

Fichier diff supprimé car celui-ci est trop grand
+ 945 - 801
examples/jsm/loaders/LDrawLoader.js


Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff