Application crashes, when trying to clone an entity with an Anim Component that has more than 1 animation layer. Repro: Open engine example: https://playcanvas.github.io/#/animation/layer-masks And add to the end: ``` modelEntity.clone(); ```  
Application crashes, when trying to clone an entity with an Anim Component that has more than 1 animation layer.
Repro:
Open engine example: https://playcanvas.github.io/#/animation/layer-masks
And add to the end: