Răsfoiți Sursa

Make it possible to remove animationData.

For the moment, It is use at own risk.
gero3 12 ani în urmă
părinte
comite
e0e52e9fa8
1 a modificat fișierele cu 11 adăugiri și 0 ștergeri
  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 ---

粤ICP备19079148号