Skip to content

Commit a7baeff

Browse files
committed
Updates
1 parent cb9ee74 commit a7baeff

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

Source/Scene/Cesium3DTileset.js

+3
Original file line numberDiff line numberDiff line change
@@ -1845,6 +1845,9 @@ define([
18451845

18461846
///////////////////////////////////////////////////////////////////////////
18471847

1848+
/**
1849+
* @private
1850+
*/
18481851
Cesium3DTileset.prototype.update = function(frameState) {
18491852
if (frameState.mode === SceneMode.MORPHING) {
18501853
return;

Source/Scene/PointCloud.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ define([
481481
// Use same random values across all runs
482482
if (!defined(randomValues)) {
483483
CesiumMath.setRandomNumberSeed(0);
484-
randomValues = new Array(20);
484+
randomValues = new Array(samplesLength);
485485
for (var i = 0; i < samplesLength; ++i) {
486486
randomValues[i] = CesiumMath.nextRandomNumber();
487487
}

Source/Scene/TimeDynamicPointCloud.js

+3
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,9 @@ define([
614614
clippingPlanesDirty : false
615615
};
616616

617+
/**
618+
* @private
619+
*/
617620
TimeDynamicPointCloud.prototype.update = function(frameState) {
618621
if (frameState.mode === SceneMode.MORPHING) {
619622
return;

Specs/Widgets/Viewer/ViewerSpec.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -1148,10 +1148,9 @@ defineSuite([
11481148

11491149
return pollToPromise(function() {
11501150
pointCloud.update(scene.frameState);
1151-
var frame = pointCloud._frames[0];
1152-
return defined(frame) && frame.ready;
1151+
return defined(pointCloud.boundingSphere);
11531152
}).then(function() {
1154-
return pointCloud;
1153+
return pointCloud.readyPromise;
11551154
});
11561155
}
11571156

0 commit comments

Comments
 (0)