){
        arm.addBone( j.name, j.parentIndex, j.rotation, j.position, j.scale );
    }

    // Create Bind Pose
    arm.bind( SkinMTX, defaultBoneLen );

    // Armature has a Transform on itself sometimes
    // Apply it at the Offset Transform gets preapplied to the root
    arm.offset.set( skin.rotation, skin.position, skin.scale );

    return arm;
}

//#endregion

</script>
</body></html>