Animations get cleared after activating the browser tab for a while

I’ve had this issue today 2 times. I open another tab and my PlayCanvas editor tab is deactivated for a long time then I open/activate/select the tab and it syncs its thing then I refresh the page and see that all my animations are gone.

Screen Shot 2022-12-02 at 00.58.00

This happened again also

calling @Elliott here

@Ertugrul_Cetin - if you can, please create an issue here to track it: Issues · playcanvas/editor · GitHub

1 Like

We have a ticket for this: Animation states all disappear when the editor has been idle for too long · Issue #799 · playcanvas/editor · GitHub

Unfortunately, the current workaround while we investigate is to not have the entity selected which isn’t great :frowning:

If the editor gets deactivated I think it is okay to refresh the page once it gets activated as it does for switching branches, so it could be more robust. Defining animations over and over again is not ideal IMHO.