cesium icon indicating copy to clipboard operation
cesium copied to clipboard

Setting style of `ModelExperimental` before it's ready causes an error

Open j9liu opened this issue 3 years ago • 0 comments

Setting model.style before the readyPromise is resolved leads to this error: image

This is because the style setter doesn't check if the model has loaded or not, so it's trying to work with undefined components. It'd be nice if this were consistent with Cesium3DTileset, which correctly applies the style once the tileset is ready.

Sandcastle example

j9liu avatar Aug 02 '22 21:08 j9liu