{"action":"closed","issue":{"url":"https://api.github.com/repos/pdelia/away3d/issues/248","labels_url":"https://api.github.com/repos/pdelia/away3d/issues/248/labels{/name}","comments_url":"https://api.github.com/repos/pdelia/away3d/issues/248/comments","events_url":"https://api.github.com/repos/pdelia/away3d/issues/248/events","html_url":"https://github.com/pdelia/away3d/issues/248","id":85828152,"number":248,"title":"[Away3DLite] Collada bone animation failure","user":{"login":"pdelia","id":12096091,"avatar_url":"https://avatars.githubusercontent.com/u/12096091?v=3","gravatar_id":"","url":"https://api.github.com/users/pdelia","html_url":"https://github.com/pdelia","followers_url":"https://api.github.com/users/pdelia/followers","following_url":"https://api.github.com/users/pdelia/following{/other_user}","gists_url":"https://api.github.com/users/pdelia/gists{/gist_id}","starred_url":"https://api.github.com/users/pdelia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdelia/subscriptions","organizations_url":"https://api.github.com/users/pdelia/orgs","repos_url":"https://api.github.com/users/pdelia/repos","events_url":"https://api.github.com/users/pdelia/events{/privacy}","received_events_url":"https://api.github.com/users/pdelia/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pdelia/away3d/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/pdelia/away3d/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/pdelia/away3d/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-07T00:36:12Z","updated_at":"2015-06-07T00:36:14Z","closed_at":"2015-06-07T00:36:14Z","body":"#68 Issue by __GoogleCodeExporter__, created on: 2015-04-24T07:51:32Z\n\n```\nWhat steps will reproduce the problem?\n1. Export a Collada file with bones who's name attributes do not match\ntheir id, e.g.:\n\n <node id=\"Bip01-node\" name=\"Bip01\" sid=\"bone11\" type=\"JOINT\">\n \n2. Import file and call update() on animation \n3. See that animations fail to update\n\nWhat is the expected output? What do you see instead?\n\nAnimations fail when node and id labels do not match in the skeleton. The\nanimations appear to work correctly in the Advanced_MultiMario example\nbecause the skeleton names and ids match e.g.:\n\n  <node id=\"neck\" name=\"neck\" sid=\"bone0\" type=\"JOINT\">\n\nThe bones are referenced via their id in the animation channels, like so:\n\n  <channel source=\"#Bip01.translate_Bip01-node_translate.Y-sampler\"\ntarget=\"Bip01-node/translate.Y\"/>\n\nSo that in Collada.as:buildAnimations(), the assignment: channel.target =\n_containers[channel.name];\n\nSets the channel target to null instead of a Bone object.\n\nI was able to rectify this issue by simply changing the following (from\nCollada.as:parseNode()):\n\n//ColladaMaya 3.02\nif(String(node.@name) != \"\")\n{\n    _objectData.name = String(node.@name);\n}else{\n    _objectData.name = String(node.@id);\n}\n\nto just:\n\n_objectData.name = String(node.@id);\n\nIn my local working copy with no apparent ill effects. This does not appear\nto break the Advanced_MultiMario example. \n\nWhat version of the product are you using? On what operating system?\n\nURL: http://away3d.googlecode.com/svn/trunk/fp10/Examples/Away3DLite/as/src\nRevision: 1933\n\nPlease provide any additional information below.\n\nMy model was exported via latest ColladaMaya/Maya 8.5\n\n```\n\nOriginal issue reported on code.google.com by `ken.rai...@gmail.com` on 13 Oct 2009 at 7:38"}}