Jelajahi Sumber

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 3 tahun lalu
induk
melakukan
bd23028479
1 mengubah file dengan 945 tambahan dan 801 penghapusan
  1. 945 801
      examples/jsm/loaders/LDrawLoader.js

File diff ditekan karena terlalu besar
+ 945 - 801
examples/jsm/loaders/LDrawLoader.js


Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini