Adding positions to a polyline updates the line, but not if I take one out

Have an odd problem where I set the .positions property of a polyline with an array of points. I use the exact same methods for creating and managing the data, the only difference is that the array of positions itself either has a point added or taken out. When I set the property the entity updates with the new added point, but if a point was delete nothing happens until I redraw the line in some other way. Any obvious reasons for this before I chase this further, some caching mechanism or, uh, something?

If it’s not obvious I’ll try to replicate the problem in a sandcastle. I’m using latest Cesium, latest Chrome.

Cheers,

Alex

Hiya,

Follow up on this issue. I don’t know why this happens, maybe it’s a bug, but I’ve hacked around it by turning ‘show’ to false, do the update to positions, and then do ‘show’ = true, and that seems to do it. Not ideal, but seems to work for now.

Cheers,

Alex