Bläddra i källkod

fix skeleton in example, better comments.

Ben Houston 10 år sedan
förälder
incheckning
9583d29532

+ 1 - 0
examples/webgl_animation_skinning_morph.html

@@ -285,6 +285,7 @@
 
 				if( mixer ) {
 					mixer.update( delta );
+					helper.update();
 				}
 
 				renderer.render( scene, camera );

+ 0 - 1
src/animation/AnimationUtils.js

@@ -41,7 +41,6 @@
 
 	},
 
- 	// TODO/OPTIMIZATION: Accumulator should be writable and it will get rid of the *.clone() calls that are likely slow.
 	getLerpFunc: function( exemplarValue, interTrack ) {
 
 		if( exemplarValue === undefined || exemplarValue === null ) throw new Error( "examplarValue is null" );

+ 0 - 2
src/animation/KeyframeTrack.js

@@ -30,8 +30,6 @@ THREE.KeyframeTrack.prototype = {
 
 	constructor: THREE.KeyframeTrack,
 
-	// TODO: this is a straight forward linear search for the key that corresponds to this time, this
-	//    should be optimized.
 	getAt: function( time ) {
 		//if( /morph/i.test( this.name ) ) {
 		//	console.log( 'KeyframeTrack[' + this.name + '].getAt( ' + time + ' )' );