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

WebGLRenderer: Do not upload MorphTargets with 0 influence.

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