Skip to content

Commit

Permalink
Remove clone of field that does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
javagl committed Nov 23, 2024
1 parent b7b4da0 commit 0b1991b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/engine/Source/Scene/Cesium3DTilesetStatistics.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,12 @@ function updatePointAndFeatureCounts(statistics, content, decrement, load) {
`After ${decrement ? "unload" : "load "} statistics.texturesByteLength now ${statistics.texturesByteLength}`,
);

/*/
//*/
console.log("Details:");
const textureIds = Object.keys(statistics.texturesReferenceCounterById);
for (const textureId of textureIds) {
const referenceCounter = statistics.texturesReferenceCounterById[textureId];
const referenceCounter =
statistics.texturesReferenceCounterById[textureId];
console.log(` referenceCounter ${referenceCounter} for ${textureId}`);
}
//*/
Expand Down Expand Up @@ -224,7 +225,6 @@ Cesium3DTilesetStatistics.clone = function (statistics, result) {
statistics.numberOfTilesCulledWithChildrenUnion;
result.geometryByteLength = statistics.geometryByteLength;
result.texturesByteLength = statistics.texturesByteLength;
result.texturesByteLengthById = { ...statistics.texturesByteLengthById };
result.texturesReferenceCounterById = {
...statistics.texturesReferenceCounterById,
};
Expand Down

0 comments on commit 0b1991b

Please sign in to comment.