提交 969d7d90 编写于 作者: M Mr.doob

WebGLRenderer: Use absNumericalSort for morphTarget influences. See #7742.

上级 f9cf53f1
......@@ -739,7 +739,7 @@ THREE.WebGLRenderer = function ( parameters ) {
}
activeInfluences.sort( numericalSort );
activeInfluences.sort( absNumericalSort );
if ( activeInfluences.length > 8 ) {
......@@ -1037,9 +1037,9 @@ THREE.WebGLRenderer = function ( parameters ) {
// Sorting
function numericalSort ( a, b ) {
function absNumericalSort( a, b ) {
return b[ 0 ] - a[ 0 ];
return Math.abs( b[ 0 ] ) - Math.abs( a[ 0 ] );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册