kottore / away3d

Automatically exported from code.google.com/p/away3d
0 stars 0 forks source link

[Away3DLite] Fails to parse joints with non-joint parents #76

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

When a collada skeleton has nodes whose parents are joints, it does not
parse their children.

For example, if the skeleton begins like so:

      <node id="root" name="root" sid="bone0" type="JOINT">
        <node id="waist" name="waist" sid="bone1" type="JOINT">
          <node id="back1Grp" name="back1Grp" type="NODE">
            <node id="back1" name="back1" sid="bone2" type="JOINT">
              <node id="back2Grp" name="back2Grp" type="NODE">
                 <node id="back2" name="back2" sid="bone3" type="JOINT">
                    <etc...>

Then nothing below "bone1" gets parsed. 

Please provide any additional information below.

The issue appears to be in Collada.as:parseNode(), on the following line:

 if (String(node["instance_node"].@url) == "" && (String(node["node"]) ==
"" || parent is BoneData))

Removing the type check on parent resolves the issue for me.  I have
attached a patch that removes the check.

Original issue reported on code.google.com by ken.rai...@gmail.com on 28 Oct 2009 at 10:16

Attachments:

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago

Original comment by katopz on 10 Dec 2009 at 9:01