|
@@ -16744,7 +16744,7 @@ THREE.WebGLRenderer = function ( parameters ) {
|
|
|
|
|
|
}
|
|
|
|
|
|
- sortArray.sort( function( a, b ) { return b[ 0 ] - a[ 0 ]; } );
|
|
|
+ sortArray.sort( numericalSort );
|
|
|
|
|
|
for ( v = 0; v < vl; v ++ ) {
|
|
|
|
|
@@ -19511,7 +19511,7 @@ THREE.WebGLRenderer = function ( parameters ) {
|
|
|
|
|
|
if ( influence > 0 ) {
|
|
|
|
|
|
- activeInfluenceIndices.push( [ i, influence ] );
|
|
|
+ activeInfluenceIndices.push( [ influence, i ] );
|
|
|
|
|
|
}
|
|
|
|
|
@@ -19538,7 +19538,7 @@ THREE.WebGLRenderer = function ( parameters ) {
|
|
|
|
|
|
if ( activeInfluenceIndices[ m ] ) {
|
|
|
|
|
|
- influenceIndex = activeInfluenceIndices[ m ][ 0 ];
|
|
|
+ influenceIndex = activeInfluenceIndices[ m ][ 1 ];
|
|
|
|
|
|
if ( attributes[ "morphTarget" + m ] >= 0 ) {
|
|
|
|
|
@@ -19609,7 +19609,7 @@ THREE.WebGLRenderer = function ( parameters ) {
|
|
|
|
|
|
function numericalSort ( a, b ) {
|
|
|
|
|
|
- return b[ 1 ] - a[ 1 ];
|
|
|
+ return b[ 0 ] - a[ 0 ];
|
|
|
|
|
|
};
|
|
|
|