Browse Source

Make it possible to remove animationData.

For the moment, It is use at own risk.
gero3 11 years ago
parent
commit
e0e52e9fa8
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 );
 
 	};
+	
+	//--- 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 ---