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

WebGLRenderer: Do not upload MorphTargets with 0 influence.

上级 c14b259b
...@@ -1051,11 +1051,16 @@ THREE.WebGLRenderer = function ( parameters ) { ...@@ -1051,11 +1051,16 @@ THREE.WebGLRenderer = function ( parameters ) {
var influence = activeInfluences[ i ]; var influence = activeInfluences[ i ];
morphInfluences[ i ] = influence[ 0 ]; morphInfluences[ i ] = influence[ 0 ];
var attribute = geometry.morphAttributes[ influence[ 1 ] ];
objects.updateAttribute( attribute ); if ( influence[ 0 ] !== 0 ) {
geometry.addAttribute( 'morphTarget' + i, attribute ); var attribute = geometry.morphAttributes[ influence[ 1 ] ];
objects.updateAttribute( attribute );
geometry.addAttribute( 'morphTarget' + i, attribute );
}
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册