Skip to content

Commit

Permalink
WebGLRenderer: MorphTargets starting to work again.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Jul 24, 2015
1 parent 9c0636d commit 01ffeb7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/renderers/WebGLRenderer.js
Expand Up @@ -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 );

}
Expand Down
2 changes: 2 additions & 0 deletions src/renderers/webgl/WebGLObjects.js
Expand Up @@ -194,6 +194,8 @@ THREE.WebGLObjects = function ( gl, properties, info ) {

};

this.updateAttribute = updateAttribute;

this.clear = function () {

objects = {};
Expand Down

0 comments on commit 01ffeb7

Please sign in to comment.