From 15bcba709d0078bfa7adfb5466dcbe0f9381606c Mon Sep 17 00:00:00 2001 From: ggetz Date: Tue, 27 Feb 2018 13:38:14 -0500 Subject: [PATCH 1/2] Raise postRender event after afterRender functions are called --- Source/Scene/Scene.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Scene/Scene.js b/Source/Scene/Scene.js index d2e375709d51..377b5113282e 100644 --- a/Source/Scene/Scene.js +++ b/Source/Scene/Scene.js @@ -3060,13 +3060,16 @@ define([ // Render this._preRender.raiseEvent(this, time); tryAndCatchError(this, time, render); - this._postRender.raiseEvent(this, time); RequestScheduler.update(); } updateDebugShowFramesPerSecond(this, shouldRender); callAfterRenderFunctions(this); + + if (shouldRender) { + this._postRender.raiseEvent(this, time); + } }; /** From 984f2f4cb35ef1b77fa3cc75a4c064508ef19004 Mon Sep 17 00:00:00 2001 From: ggetz Date: Tue, 27 Feb 2018 13:40:49 -0500 Subject: [PATCH 2/2] Update changes.md --- CHANGES.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES.md b/CHANGES.md index a294ea59c471..08429f457c6e 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -40,6 +40,7 @@ Change Log * Fixed issue where `CESIUM_BASE_URL` wouldn't work without a trailing `/`. [#6225](https://github.com/AnalyticalGraphicsInc/cesium/issues/6225) * Fixed coloring for polyline entities with a dynamic color for the depth fail material [#6245](https://github.com/AnalyticalGraphicsInc/cesium/pull/6245) * Fixed an issue causing the Bing Maps key to be sent unnecessarily with every tile request. [#6250](https://github.com/AnalyticalGraphicsInc/cesium/pull/6250) +* Fixed bug with zooming to dynamic geometry. [#6269](https://github.com/AnalyticalGraphicsInc/cesium/issues/6269) * Fixed documentation issue for the `Cesium.Math` class. [#6233](https://github.com/AnalyticalGraphicsInc/cesium/issues/6233) ##### Additions :tada: