Hi everyone!
Fast question; is there a way to initialize a light with an empty includedOnlyMeshes
array, so the light only affects the Meshes I want to add to the array?
Currently I do this:
light.includedOnlyMeshes = [null]
The code above does work, but if you put the TypeScript setting to strict
, you get the following error:
Type 'null' is not assignable to type 'AbstractMesh'
Understandable, but is there a way to go around this issue? I’ve been wondering about this for a while now, and I think code wise Babylon only checks if there is anything in the includedOnlyMeshes
to go into the “only process these Meshes” -mode.