{"action":"created","issue":{"url":"https://api.github.com/repos/playcanvas/engine/issues/786","repository_url":"https://api.github.com/repos/playcanvas/engine","labels_url":"https://api.github.com/repos/playcanvas/engine/issues/786/labels{/name}","comments_url":"https://api.github.com/repos/playcanvas/engine/issues/786/comments","events_url":"https://api.github.com/repos/playcanvas/engine/issues/786/events","html_url":"https://github.com/playcanvas/engine/pull/786","id":191228616,"number":786,"title":"Added BlendIndices & BlendWeights to pc.createMesh","user":{"login":"majimboo","id":6186420,"avatar_url":"https://avatars.githubusercontent.com/u/6186420?v=3","gravatar_id":"","url":"https://api.github.com/users/majimboo","html_url":"https://github.com/majimboo","followers_url":"https://api.github.com/users/majimboo/followers","following_url":"https://api.github.com/users/majimboo/following{/other_user}","gists_url":"https://api.github.com/users/majimboo/gists{/gist_id}","starred_url":"https://api.github.com/users/majimboo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/majimboo/subscriptions","organizations_url":"https://api.github.com/users/majimboo/orgs","repos_url":"https://api.github.com/users/majimboo/repos","events_url":"https://api.github.com/users/majimboo/events{/privacy}","received_events_url":"https://api.github.com/users/majimboo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-23T10:01:26Z","updated_at":"2016-11-23T10:34:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/playcanvas/engine/pulls/786","html_url":"https://github.com/playcanvas/engine/pull/786","diff_url":"https://github.com/playcanvas/engine/pull/786.diff","patch_url":"https://github.com/playcanvas/engine/pull/786.patch"},"body":"As I said on #785, I believe this approach would be better for most users.\r\n\r\nI also think that considering only 2 indices is ideal as most of the time (90%) games will only use 1 or 2 indices. Having more than 2 will only increase the footprint of the array and not even get used at all.\r\n\r\nCheers!\r\n\r\nUsage\r\n-------\r\n\r\n    var positions = [];\r\n    var normals   = [];\r\n    var uvs       = [];\r\n    var indices   = [];\r\n    var blendIndices = [];\r\n    var blendWeights = [];\r\n\r\n    var options = {\r\n      normals : normals,\r\n      uvs     : uvs,\r\n      indices : indices,\r\n      blendIndices: blendIndices,\r\n      blendWeights: blendWeights\r\n    };\r\n\r\n    var mesh = pc.createMesh(app.graphicsDevice, positions, options);  \r\n"},"comment":{"url":"https://api.github.com/repos/playcanvas/engine/issues/comments/262479773","html_url":"https://github.com/playcanvas/engine/pull/786#issuecomment-262479773","issue_url":"https://api.github.com/repos/playcanvas/engine/issues/786","id":262479773,"user":{"login":"majimboo","id":6186420,"avatar_url":"https://avatars.githubusercontent.com/u/6186420?v=3","gravatar_id":"","url":"https://api.github.com/users/majimboo","html_url":"https://github.com/majimboo","followers_url":"https://api.github.com/users/majimboo/followers","following_url":"https://api.github.com/users/majimboo/following{/other_user}","gists_url":"https://api.github.com/users/majimboo/gists{/gist_id}","starred_url":"https://api.github.com/users/majimboo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/majimboo/subscriptions","organizations_url":"https://api.github.com/users/majimboo/orgs","repos_url":"https://api.github.com/users/majimboo/repos","events_url":"https://api.github.com/users/majimboo/events{/privacy}","received_events_url":"https://api.github.com/users/majimboo/received_events","type":"User","site_admin":false},"created_at":"2016-11-23T10:34:28Z","updated_at":"2016-11-23T10:34:28Z","body":"@Maksims, Yo! done. You're welcome, thanks for this great engine too. :+1: "}}
{"actor":{"display_login":"majimboo"}}