Skip to content

Commit

Permalink
update variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
jjspace committed Jan 13, 2025
1 parent 6fbbcb9 commit 8a88cd4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/engine/Source/Widget/CesiumWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -1554,7 +1554,7 @@ function updateZoomTarget(widget) {
}
}

const trackedEntityBoundingSphereScratch2 = new BoundingSphere();
const trackedEntityBoundingSphereScratch = new BoundingSphere();

function updateTrackedEntity(widget) {
if (!widget._needTrackedEntityUpdate) {
Expand All @@ -1581,7 +1581,7 @@ function updateTrackedEntity(widget) {
const state = widget._dataSourceDisplay.getBoundingSphere(
trackedEntity,
false,
trackedEntityBoundingSphereScratch2,
trackedEntityBoundingSphereScratch,
);
if (state === BoundingSphereState.PENDING) {
return;
Expand All @@ -1604,7 +1604,7 @@ function updateTrackedEntity(widget) {

const bs =
state !== BoundingSphereState.FAILED
? trackedEntityBoundingSphereScratch2
? trackedEntityBoundingSphereScratch
: undefined;
widget._entityView = new EntityView(trackedEntity, scene, scene.ellipsoid);
widget._entityView.update(currentTime, bs);
Expand Down

0 comments on commit 8a88cd4

Please sign in to comment.