{"action":"created","issue":{"url":"https://api.github.com/repos/Chobolabs/spine-cpp/issues/4","repository_url":"https://api.github.com/repos/Chobolabs/spine-cpp","labels_url":"https://api.github.com/repos/Chobolabs/spine-cpp/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/Chobolabs/spine-cpp/issues/4/comments","events_url":"https://api.github.com/repos/Chobolabs/spine-cpp/issues/4/events","html_url":"https://github.com/Chobolabs/spine-cpp/issues/4","id":174033938,"number":4,"title":"Anim_Start event behavior.","user":{"login":"Blttrr","id":8529720,"avatar_url":"https://avatars.githubusercontent.com/u/8529720?v=3","gravatar_id":"","url":"https://api.github.com/users/Blttrr","html_url":"https://github.com/Blttrr","followers_url":"https://api.github.com/users/Blttrr/followers","following_url":"https://api.github.com/users/Blttrr/following{/other_user}","gists_url":"https://api.github.com/users/Blttrr/gists{/gist_id}","starred_url":"https://api.github.com/users/Blttrr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Blttrr/subscriptions","organizations_url":"https://api.github.com/users/Blttrr/orgs","repos_url":"https://api.github.com/users/Blttrr/repos","events_url":"https://api.github.com/users/Blttrr/events{/privacy}","received_events_url":"https://api.github.com/users/Blttrr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-30T14:26:46Z","updated_at":"2016-09-07T17:44:52Z","closed_at":null,"body":"If there are no playing animations on track, `AnimationState::addAnimation` method won't fire an  Anim_Start callback. `AnimationState::setAnimation` always fires it. "},"comment":{"url":"https://api.github.com/repos/Chobolabs/spine-cpp/issues/comments/245360829","html_url":"https://github.com/Chobolabs/spine-cpp/issues/4#issuecomment-245360829","issue_url":"https://api.github.com/repos/Chobolabs/spine-cpp/issues/4","id":245360829,"user":{"login":"pharan","id":1911082,"avatar_url":"https://avatars.githubusercontent.com/u/1911082?v=3","gravatar_id":"","url":"https://api.github.com/users/pharan","html_url":"https://github.com/pharan","followers_url":"https://api.github.com/users/pharan/followers","following_url":"https://api.github.com/users/pharan/following{/other_user}","gists_url":"https://api.github.com/users/pharan/gists{/gist_id}","starred_url":"https://api.github.com/users/pharan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pharan/subscriptions","organizations_url":"https://api.github.com/users/pharan/orgs","repos_url":"https://api.github.com/users/pharan/repos","events_url":"https://api.github.com/users/pharan/events{/privacy}","received_events_url":"https://api.github.com/users/pharan/received_events","type":"User","site_admin":false},"created_at":"2016-09-07T17:44:52Z","updated_at":"2016-09-07T17:44:52Z","body":"This is the same behavior as in the official runtime.\r\nThe fix is to replace addAnimation's [direct trackEntry[x] assignment](https://github.com/Chobolabs/spine-cpp/blob/master/src/spinecpp/AnimationState.cpp#L396) with a `setCurrent` call which does fire the Start callback.\r\n\r\nWe haven't applied this to the official runtime yet because the new AnimationState (in the dev branch) is just about ready and already addresses this."}}
{"actor":{"display_login":"pharan"}}