Calling assetContainer.addAllToScene multiple times freezes page

Heya, I stumbled onto an issue that occurs if addAllToScene() is called on an AssetContainer more than once. If you open the below playground that calls it twice and click the run button for example, then the page becomes unresponsive.
https://playground.babylonjs.com/#99WCUQ#12

And here’s a little PR that fixes the issue by simply checking if it was already called and returning early if it was. :slightly_smiling_face:

2 Likes

Cool thanks a lot for the fix

Edit: Flagging my post as solution as I can not flag the question as such :slight_smile:

1 Like