BabylonJS / Extensions

Extensions for Babylon.js
175 stars 155 forks source link

Fix precomputeInstances to allow false #240

Closed daedaluscrow closed 1 year ago

daedaluscrow commented 1 year ago

In its current implementation, the precomputeInstances option is always set to true, regardless of what is passed as the value when creating the terrain. I updated the assignment of this._precomputeInstances to check for undefined instead of checking for a true/false value.