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.

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:


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