Browse Source

Merge branch 'patch-13' of https://github.com/gero3/three.js into dev

Mr.doob 11 years ago
parent
commit
26b7554130
1 changed files with 11 additions and 0 deletions
  1. 11 0
      src/extras/animation/AnimationHandler.js

+ 11 - 0
src/extras/animation/AnimationHandler.js

@@ -52,6 +52,17 @@ THREE.AnimationHandler = (function() {
 		initData( data );
 		initData( data );
 
 
 	};
 	};
+	
+	//--- remove ---
+
+	that.remove = function( name ) {
+
+		if ( library[ name ] === undefined )
+			console.log( "THREE.AnimationHandler.add: Warning! " + name + " doesn't exists in library. Doing nothing." );
+			
+		library[ name ] = undefined;
+
+	};
 
 
 
 
 	//--- get ---
 	//--- get ---