| 7874 | }; |
| 7875 | |
| 7876 | function parseSkin() { |
| 7877 | |
| 7878 | var i, l, x, y, z, w, a, b, c, d; |
| 7879 | |
| 7880 | if ( json.skinWeights ) { |
| 7881 | |
| 7882 | for ( i = 0, l = json.skinWeights.length; i < l; i += 2 ) { |
| 7883 | |
| 7884 | x = json.skinWeights[ i ]; |
| 7885 | y = json.skinWeights[ i + 1 ]; |
| 7886 | z = 0; |
| 7887 | w = 0; |
| 7888 | |
| 7889 | geometry.skinWeights.push( new THREE.Vector4( x, y, z, w ) ); |
| 7890 | |
| 7891 | } |
| 7892 | |
| 7893 | } |
| 7894 | |
| 7895 | if ( json.skinIndices ) { |
| 7896 | |
| 7897 | for ( i = 0, l = json.skinIndices.length; i < l; i += 2 ) { |
| 7898 | |
| 7899 | a = json.skinIndices[ i ]; |
| 7900 | b = json.skinIndices[ i + 1 ]; |
| 7901 | c = 0; |
| 7902 | d = 0; |
| 7903 | |
| 7904 | geometry.skinIndices.push( new THREE.Vector4( a, b, c, d ) ); |
| 7905 | |
| 7906 | } |
| 7907 | |
| 7908 | } |
| 7909 | |
| 7910 | geometry.bones = json.bones; |
| 7911 | geometry.animation = json.animation; |
| 7912 | |
| 7913 | }; |
| 7914 | |
| 7915 | function parseMorphing( scale ) { |
| 7916 | |