@jdultra/threedtiles 13.0.19 → 13.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/threedtiles.es.js
CHANGED
|
@@ -3516,6 +3516,7 @@ class Wt extends E.Object3D {
|
|
|
3516
3516
|
}
|
|
3517
3517
|
}), t.add(g), t.updateMatrices()));
|
|
3518
3518
|
}, t.cameraOnLoad ? () => {
|
|
3519
|
+
if (t.loadingStrategy == "IMMEDIATE") return t._calculateDistanceToCamera(t.cameraOnLoad);
|
|
3519
3520
|
let g = 1;
|
|
3520
3521
|
return (t.metric && t.metric < 0 || t.deleted) && (g = 2), t.parentTile ? t.parentTile._calculateDistanceToCamera(t.cameraOnLoad) * g * t.level : t._calculateDistanceToCamera(t.cameraOnLoad) * g * t.level;
|
|
3521
3522
|
} : () => 0, () => t._getSiblings(), t.level, t.loadingStrategy, !t.json.boundingVolume.region, !!t.json.boundingVolume.region, t.geometricError, t.splatsMesh);
|