소스 검색

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

Mr.doob 12 년 전
부모
커밋
26b7554130
1개의 변경된 파일11개의 추가작업 그리고 0개의 파일을 삭제
  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号