NASA-AMMOS / 3DTilesRendererJS

Renderer for 3D Tiles in Javascript using three.js
https://nasa-ammos.github.io/3DTilesRendererJS/example/bundle/mars.html
Apache License 2.0
1.48k stars 270 forks source link

Make use of cached._loadIndex #605

Closed Nmzik closed 2 weeks ago

Nmzik commented 3 weeks ago

Upon further investigation, I noticed that the loadIndex initialized in the tile.cached object to zero is not being used. This commit renames loadIndex to _loadIndex and utilizes it to prevent further tile loading if it has been unloaded. PS: I believe there was some confusion/oversight between tile.__loadIndex and tile.cached.loadIndex before. #600

gkjohnson commented 2 weeks ago

Thanks!