浏览代码

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 年之前
父节点
当前提交
bd23028479
共有 1 个文件被更改,包括 945 次插入801 次删除
  1. 945 801
      examples/jsm/loaders/LDrawLoader.js

文件差异内容过多而无法显示
+ 945 - 801
examples/jsm/loaders/LDrawLoader.js


部分文件因为文件数量过多而无法显示