소스 검색

Merge pull request #10489 from donmccurdy/bug-clips-ref

Fix old reference to gltf.clips in demo.
Mr.doob 9 년 전
부모
커밋
2d353f65c9
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      examples/webgl_loader_gltf.html

+ 2 - 2
examples/webgl_loader_gltf.html

@@ -541,11 +541,11 @@
 
 
 			function toggleAnimations() {
 			function toggleAnimations() {
 
 
-				var i, len = gltf.clips.length;
+				var i, len = gltf.animations.length;
 
 
 				for (i = 0; i < len; i++) {
 				for (i = 0; i < len; i++) {
 
 
-					var clip = gltf.clips[i];
+					var clip = gltf.animations[i];
 					var action = mixer.existingAction( clip );
 					var action = mixer.existingAction( clip );
 
 
 					if (action.isRunning()) {
 					if (action.isRunning()) {