Disposing instance with vat v8.16.0

repro: https://playground.babylonjs.com/#CP2RN9#309

A recent npm update showed that instances with vats are not disposing correctly. Traced to v8.16.0, v8.15.1 works fine. You can compare with 7.54.2 in the above repro. Did I miss a breaking change?

Thanks for reporting, here’s the fix:

1 Like

This also fixes all instances when count goes to 0 :slight_smile: