You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
line 47: var position = new Cartesian3();
...
line 115: position = Property.getValueOrUndefined(entity._position, time, position);
In the case of a CallbackProperty if the author of the callback returns a variable of non-local scope (to their function) then through subsequent loops of this update method the position of other billboard entities gets written back to that variable via this global variable.
In the Sandcastle example the dynamic entity is under the mouse as it moves and then gets set back to the position of the static entity on each render tick.
Suggestion, to clone it if it exists, otherwise preserve current behavior:
var tempPos = Property.getValueOrUndefined(entity._position, time, position);
if(tempPos) {
Cesium.Cartesian3.clone(tempPos, position);
} else {
position = tempPos;
}
The text was updated successfully, but these errors were encountered:
Reproduced: Sandcastle
https://github.com/AnalyticalGraphicsInc/cesium/blob/master/Source/DataSources/BillboardVisualizer.js
most recent commit: 337ad9d
In the case of a CallbackProperty if the author of the callback returns a variable of non-local scope (to their function) then through subsequent loops of this update method the position of other billboard entities gets written back to that variable via this global variable.
In the Sandcastle example the dynamic entity is under the mouse as it moves and then gets set back to the position of the static entity on each render tick.
Suggestion, to clone it if it exists, otherwise preserve current behavior:
The text was updated successfully, but these errors were encountered: