Browse 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 3 năm trước cách đây
mục cha
commit
bd23028479
1 tập tin đã thay đổi với 945 bổ sung801 xóa
  1. 945 801
      examples/jsm/loaders/LDrawLoader.js

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 945 - 801
examples/jsm/loaders/LDrawLoader.js


Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác