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

WebGLRenderer: MorphTargets starting to work again.

上级 9c0636d1
......@@ -1047,9 +1047,13 @@ THREE.WebGLRenderer = function ( parameters ) {
for ( var i = 0, l = activeInfluences.length; i < l; i ++ ) {
morphInfluences[ i ] = activeInfluences[ i ][ 0 ];
var influence = activeInfluences[ i ];
morphInfluences[ i ] = influence[ 0 ];
var attribute = geometry.morphAttributes[ influence[ 1 ] ];
objects.updateAttribute( attribute );
var attribute = geometry.morphAttributes[ activeInfluences[ i ][ 1 ] ];
geometry.addAttribute( 'morphTarget' + i, attribute );
}
......
......@@ -194,6 +194,8 @@ THREE.WebGLObjects = function ( gl, properties, info ) {
};
this.updateAttribute = updateAttribute;
this.clear = function () {
objects = {};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册