material rendering bug

I'm currently working on a project for my work where we load CZML, then make on the fly changes to the loaded objects via the API - highlighting the objects on pick. It works well, except that a random rendering error occurs maybe 1 out of 10 picks. Loading the unminified build of Cesium, I am able to trace to the responsible code.

DynamicScene/StaticGeometryPerMaterialBatch.js:175 (in b27) call to add() includes a single parameter, an updater, where the function expects time and an updater. Looking at b29, it looks like the disparity still exists.

Unfortunately it doesn't look like adding the missing parameter is enough. Making the change seems to introduce an infinite loop somewhere, which goes beyond my debugging ability.

Any help would be greatly appreciated! Thanks!

I’ve opened an issue in GitHub to better track this bug:

This has been fixed and will be in 1.0 on Friday: