瀏覽代碼

Fix old reference to gltf.clips

Don McCurdy 8 年之前
父節點
當前提交
e65efda9df
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      examples/webgl_loader_gltf.html

+ 2 - 2
examples/webgl_loader_gltf.html

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