{"action":"closed","issue":{"url":"https://api.github.com/repos/playcanvas/engine/issues/276","labels_url":"https://api.github.com/repos/playcanvas/engine/issues/276/labels{/name}","comments_url":"https://api.github.com/repos/playcanvas/engine/issues/276/comments","events_url":"https://api.github.com/repos/playcanvas/engine/issues/276/events","html_url":"https://github.com/playcanvas/engine/issues/276","id":76765081,"number":276,"title":"Cloning an animation component creates a copy of all animations","user":{"login":"willeastcott","id":697563,"avatar_url":"https://avatars.githubusercontent.com/u/697563?v=3","gravatar_id":"","url":"https://api.github.com/users/willeastcott","html_url":"https://github.com/willeastcott","followers_url":"https://api.github.com/users/willeastcott/followers","following_url":"https://api.github.com/users/willeastcott/following{/other_user}","gists_url":"https://api.github.com/users/willeastcott/gists{/gist_id}","starred_url":"https://api.github.com/users/willeastcott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willeastcott/subscriptions","organizations_url":"https://api.github.com/users/willeastcott/orgs","repos_url":"https://api.github.com/users/willeastcott/repos","events_url":"https://api.github.com/users/willeastcott/events{/privacy}","received_events_url":"https://api.github.com/users/willeastcott/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-15T15:40:01Z","updated_at":"2015-05-28T08:54:45Z","closed_at":"2015-05-28T08:54:45Z","body":"Instead, animations should be referenced. The offending line is:\r\n\r\n            clone.animation.animations = pc.extend({}, entity.animation.animations);\r\n\r\n...in animation_system.js, Not only does this use a lot of memory but it's incredibly slow to copy entire animations.\r\n"}}