From 860169594e1174c090feb62d1652486fef442c88 Mon Sep 17 00:00:00 2001 From: jjspace <8007967+jjspace@users.noreply.github.com> Date: Fri, 1 Nov 2024 14:36:38 -0400 Subject: [PATCH 1/2] update timeline when data sources change --- packages/widgets/Source/Viewer/Viewer.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/widgets/Source/Viewer/Viewer.js b/packages/widgets/Source/Viewer/Viewer.js index 3b6ec54ba84..4574ef6aadc 100644 --- a/packages/widgets/Source/Viewer/Viewer.js +++ b/packages/widgets/Source/Viewer/Viewer.js @@ -1926,6 +1926,14 @@ Viewer.prototype._onDataSourceAdded = function ( dataSourceCollection, dataSource, ) { + if ( + this._cesiumWidget._automaticallyTrackDataSourceClocks && + dataSource === this.clockTrackedDataSource + ) { + // When data sources are added to the CesiumWidget they may be automatically + // tracked in that class but we also need to update the timeline in this class + linkTimelineToDataSourceClock(this._timeline, dataSource); + } const id = dataSource.entities.id; const removalFunc = this._eventHelper.add( dataSource.changedEvent, From 2b748246ce8ee0919523194e4230c0d2bb7a2a19 Mon Sep 17 00:00:00 2001 From: jjspace <8007967+jjspace@users.noreply.github.com> Date: Fri, 1 Nov 2024 15:01:54 -0400 Subject: [PATCH 2/2] adjust czml time for lighting --- .../gallery/CZML Model - Node Transformations.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Apps/Sandcastle/gallery/CZML Model - Node Transformations.html b/Apps/Sandcastle/gallery/CZML Model - Node Transformations.html index 10de6e4428f..c2342589432 100644 --- a/Apps/Sandcastle/gallery/CZML Model - Node Transformations.html +++ b/Apps/Sandcastle/gallery/CZML Model - Node Transformations.html @@ -36,8 +36,8 @@ name: "CZML Model", version: "1.0", clock: { - interval: "2015-01-01T00:00:00Z/2015-01-01T00:00:20Z", - currentTime: "2015-01-01T00:00:00Z", + interval: "2015-01-01T12:00:00Z/2015-01-01T12:00:20Z", + currentTime: "2015-01-01T12:00:00Z", multiplier: 20, }, }, @@ -55,7 +55,7 @@ nodeTransformations: { Skeleton_arm_joint_L__3_: { rotation: { - epoch: "2015-01-01T00:00:00Z", + epoch: "2015-01-01T12:00:00Z", unitQuaternion: [ 0, -0.23381920887303329, -0.6909886782144156, -0.0938384854833712, 0.6775378681547408, 10, -0.4924076887347565, -0.6304934596091216,