[BUG] Cloning/instantiating a template with anim component is broken

Hello guys!

We’ve found an issue with cloning/instantiating templates that contain anim component. Animations don’t work at all on cloned (as well as instantiated from template) entities.

Here’s the demo project link: Test Models and Animation - PLAYCANVAS
Here’s the project itself: PlayCanvas 3D HTML5 Game Engine

Note: the bug appears only when launching a published project (e.g. Test Models and Animation - PLAYCANVAS)
Debug builds (that are launched from the editor, like https://launch.playcanvas.com/1258177?debug=true ) work well in the same project.

P.S. I think it may be related to this (already closed though) issue with rootBone property https://github.com/playcanvas/engine/issues/3426

1 Like

That’s odd that it works fine in the launch tab but not a published build :thinking:

It works fine in my Bitmoji Library project published build but I don’t have a Root Bone set which may be the key difference. Will investigate further

1 Like

I’ve created a ticket on this: https://github.com/playcanvas/engine/issues/3618

1 Like

I think this is also the case when cloning entities with animated sprite components.
I’ll try to reproduce and share an example later today

If you do find an issue with Animated Sprites, can you open a new ticket please as it is unlikely to be related

@Igor I’ve got a PR that should fix this. Awaiting review: https://github.com/playcanvas/engine/pull/3619


That’s great, thank you guys @yaustar @will @Elliott for quick reaction!
When do you plan to release the next build that includes this fix?

We are shorthanded this week so it’s likely to be next week for and Editor engine update.

A engine patch release for 1.48.X may be earlier though.