Skip to content

Commit eece95f

Browse files
authoredMay 29, 2019
Merge pull request #7877 from AnalyticalGraphicsInc/fix-credits
Fix 3D Tiles credits
2 parents a9d3029 + c2cf844 commit eece95f

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed
 

‎CHANGES.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
Change Log
22
==========
3+
34
### 1.58 - 2019-06-03
45

56
##### Additions :tada:
@@ -13,6 +14,7 @@ Change Log
1314
* Fixed an edge case where Cesium would provide ion access token credentials to non-ion servers if the actual asset entrypoint was being hosted by ion. [#7839](https://github.com/AnalyticalGraphicsInc/cesium/pull/7839)
1415
* Fixed a bug that caused Cesium to request non-existent tiles for terrain tilesets lacking tile availability, i.e. a `layer.json` file.
1516
* Fixed memory leak when removing entities that had a `HeightReference` of `CLAMP_TO_GROUND` or `RELATIVE_TO_GROUND`. This includes when removing a `DataSource`.
17+
* Fixed 3D Tiles credits not being shown in the data attribution box. [#7877](https://github.com/AnalyticalGraphicsInc/cesium/pull/7877)
1618

1719
### 1.57 - 2019-05-01
1820

‎Source/Scene/Scene.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -3198,9 +3198,12 @@ define([
31983198
}
31993199

32003200
function prePassesUpdate(scene) {
3201+
var frameState = scene._frameState;
3202+
frameState.creditDisplay.update();
3203+
frameState.creditDisplay.beginFrame();
3204+
32013205
scene._jobScheduler.resetBudgets();
32023206

3203-
var frameState = scene._frameState;
32043207
var primitives = scene.primitives;
32053208
primitives.prePassesUpdate(frameState);
32063209

@@ -3209,7 +3212,6 @@ define([
32093212
}
32103213

32113214
scene._pickPositionCacheDirty = true;
3212-
frameState.creditDisplay.update();
32133215
}
32143216

32153217
function postPassesUpdate(scene) {
@@ -3218,6 +3220,7 @@ define([
32183220
primitives.postPassesUpdate(frameState);
32193221

32203222
RequestScheduler.update();
3223+
frameState.creditDisplay.endFrame();
32213224
}
32223225

32233226
var scratchBackgroundColor = new Color();
@@ -3245,8 +3248,6 @@ define([
32453248
}
32463249
frameState.backgroundColor = backgroundColor;
32473250

3248-
frameState.creditDisplay.beginFrame();
3249-
32503251
scene.fog.update(frameState);
32513252

32523253
us.update(frameState);
@@ -3292,7 +3293,6 @@ define([
32923293
}
32933294
}
32943295

3295-
frameState.creditDisplay.endFrame();
32963296
context.endFrame();
32973297
}
32983298

0 commit comments

Comments
 (0)
Please sign in to comment.