Missing default value for `generateMipMaps` in dynamic texture constructor

Any chance we can replace

generateMipMaps: boolean

with

generateMipMaps: boolean = false

in DynamicTexture.constructor please?

Docs describe it as false by default but it is you using TypeScript it will be marked as required.

You’re right, here’s the PR:

I don’t understand why Typescript does not catch this one…

Nice one. Should have probably submit it myself! :sweat_smile: Will do next time.

I don’t understand why Typescript does not catch this one…

All the arguments (starting from) have default value set, generateMipMaps is the only one that is missing, so that makes it required. In fact that forces scene value to be passed in as well, negating it being null by default.

Thanks for the fix @Evgeni_Popov. Looking forward to the merge.