{"action":"created","issue":{"url":"https://api.github.com/repos/urho3d/Urho3D/issues/1695","repository_url":"https://api.github.com/repos/urho3d/Urho3D","labels_url":"https://api.github.com/repos/urho3d/Urho3D/issues/1695/labels{/name}","comments_url":"https://api.github.com/repos/urho3d/Urho3D/issues/1695/comments","events_url":"https://api.github.com/repos/urho3d/Urho3D/issues/1695/events","html_url":"https://github.com/urho3d/Urho3D/issues/1695","id":191573702,"number":1695,"title":"Incorrect initialization a CrowdAgent component.","user":{"login":"Commondor","id":9081571,"avatar_url":"https://avatars.githubusercontent.com/u/9081571?v=3","gravatar_id":"","url":"https://api.github.com/users/Commondor","html_url":"https://github.com/Commondor","followers_url":"https://api.github.com/users/Commondor/followers","following_url":"https://api.github.com/users/Commondor/following{/other_user}","gists_url":"https://api.github.com/users/Commondor/gists{/gist_id}","starred_url":"https://api.github.com/users/Commondor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Commondor/subscriptions","organizations_url":"https://api.github.com/users/Commondor/orgs","repos_url":"https://api.github.com/users/Commondor/repos","events_url":"https://api.github.com/users/Commondor/events{/privacy}","received_events_url":"https://api.github.com/users/Commondor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-24T18:05:11Z","updated_at":"2016-11-25T21:17:56Z","closed_at":null,"body":"When load xml with InstantiateXML a CrowdAgent component is incorrect initialization because CrowdAgent component initialized (`agentCrowdId_ = crowdManager_->AddAgent(this, node_->GetPosition());`) **before** **node->SetTransform(position, rotation);** and node_ have position = Vector3(0,0,0).\r\n\r\n\r\nMay be make this )) :\r\n`\r\nvoid CrowdAgent::OnSceneSet(Scene* scene)\r\n{\r\n  AddAgentToCrowd(false, **false**);\r\n}\r\n\r\nand\r\n\r\nint CrowdAgent::AddAgentToCrowd(bool force**, bool isCreated /*= true*/**)\r\n{\r\n    if (!node_ || !crowdManager_ || !crowdManager_->crowd_ || !**isCreated**)\r\n        return -1;\r\n`\r\n"},"comment":{"url":"https://api.github.com/repos/urho3d/Urho3D/issues/comments/263023394","html_url":"https://github.com/urho3d/Urho3D/issues/1695#issuecomment-263023394","issue_url":"https://api.github.com/repos/urho3d/Urho3D/issues/1695","id":263023394,"user":{"login":"cadaver","id":51361,"avatar_url":"https://avatars.githubusercontent.com/u/51361?v=3","gravatar_id":"","url":"https://api.github.com/users/cadaver","html_url":"https://github.com/cadaver","followers_url":"https://api.github.com/users/cadaver/followers","following_url":"https://api.github.com/users/cadaver/following{/other_user}","gists_url":"https://api.github.com/users/cadaver/gists{/gist_id}","starred_url":"https://api.github.com/users/cadaver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cadaver/subscriptions","organizations_url":"https://api.github.com/users/cadaver/orgs","repos_url":"https://api.github.com/users/cadaver/repos","events_url":"https://api.github.com/users/cadaver/events{/privacy}","received_events_url":"https://api.github.com/users/cadaver/received_events","type":"User","site_admin":false},"created_at":"2016-11-25T21:17:56Z","updated_at":"2016-11-25T21:17:56Z","body":"Thanks."}}
{"actor":{"display_login":"cadaver"}}