Skip to content

Commit

Permalink
Merge pull request #3511 from AnalyticalGraphicsInc/billboard-clamp-t…
Browse files Browse the repository at this point in the history
…o-ground

Fix updating billboards on terrain multiple times in a single frame.
  • Loading branch information
Hannah committed Feb 4, 2016
2 parents 1219c28 + 30de8c8 commit 9e80f2c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Change Log
*
* Fixed bug for causing `navigator is not defined` reference error in node
* Added `Camera.flyHome` function for resetting the camera to the home view
* Fix an issue when changing a billboard's position property multiple times per frame. [#3511](https://github.com/AnalyticalGraphicsInc/cesium/pull/3511)

### 1.18 - 2016-02-01
* Breaking changes
Expand Down
8 changes: 8 additions & 0 deletions Source/Scene/QuadtreePrimitive.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,14 @@ define([
};

object.removeFunc = function() {
var addedCallbacks = primitive._addHeightCallbacks;
var length = addedCallbacks.length;
for (var i = 0; i < length; ++i) {
if (addedCallbacks[i] === object) {
addedCallbacks.splice(i, 1);
break;
}
}
primitive._removeHeightCallbacks.push(object);
};

Expand Down

0 comments on commit 9e80f2c

Please sign in to comment.