"thinInstanceAdd" and "thinInstanceSetBuffer" documentation differs from API

Not sure if I’m missing something here. But the thinInstanceAdd and thinInstanceSetBuffer methods from documentation and code examples do not match the API library

The thinInstanceAdd method in the documentation (and example) show the refresh parameter as optional, but Typescript requires this parameter in @babylonjs/core 4.2.0

I believe the source code should be refresh?: boolean, notice Typescript’s use of ? to set this parameter as optional.

There is a similar issue for thinInstanceSetBuffer

You’re right, this should fix it:

1 Like

Thanks. thinInstanceSetBuffer also has parameters which appear to be optional in documentation but required in source.

stride
staticBuffer

Indeed:

1 Like