Crash when disposing light (ClusteredLights need to be present)

Hi everyone,

Please see playground: https://playground.babylonjs.com/#WLDCUC#251

  • tested in WebGPU
  • can be fixed when commenting L26 (i.e. disable ClusteredLights)
  • will not crash when disposing “+StaticLight”

Best wishes
Joe

cc @Evgeni_Popov

Thanks for reporting, here’s the fix:

4 Likes