浏览代码

Updated builds.

Mr.doob 7 年之前
父节点
当前提交
8d77748978
共有 3 个文件被更改,包括 41 次插入201 次删除
  1. 20 2
      build/three.js
  2. 1 197
      build/three.min.js
  3. 20 2
      build/three.module.js

+ 20 - 2
build/three.js

@@ -22169,7 +22169,16 @@
 			if ( isAnimating ) return;
 
 			var device = vr.getDevice();
-			( ( device && device.isConnected ) || window ).requestAnimationFrame( loop );
+			
+			if ( device && device.isConnected ) {
+
+				device.requestAnimationFrame( loop );
+
+			} else {
+
+				window.requestAnimationFrame( loop );
+
+			}
 
 			isAnimating = true;
 
@@ -22180,7 +22189,16 @@
 			if ( onAnimationFrame !== null ) onAnimationFrame( time );
 
 			var device = vr.getDevice();
-			( ( device && device.isConnected ) || window ).requestAnimationFrame( loop );
+			
+			if ( device && device.isConnected ) {
+
+				device.requestAnimationFrame( loop );
+
+			} else {
+
+				window.requestAnimationFrame( loop );
+
+			}
 
 		}
 

文件差异内容过多而无法显示
+ 1 - 197
build/three.min.js


+ 20 - 2
build/three.module.js

@@ -22163,7 +22163,16 @@ function WebGLRenderer( parameters ) {
 		if ( isAnimating ) return;
 
 		var device = vr.getDevice();
-		( ( device && device.isConnected ) || window ).requestAnimationFrame( loop );
+		
+		if ( device && device.isConnected ) {
+
+			device.requestAnimationFrame( loop );
+
+		} else {
+
+			window.requestAnimationFrame( loop );
+
+		}
 
 		isAnimating = true;
 
@@ -22174,7 +22183,16 @@ function WebGLRenderer( parameters ) {
 		if ( onAnimationFrame !== null ) onAnimationFrame( time );
 
 		var device = vr.getDevice();
-		( ( device && device.isConnected ) || window ).requestAnimationFrame( loop );
+		
+		if ( device && device.isConnected ) {
+
+			device.requestAnimationFrame( loop );
+
+		} else {
+
+			window.requestAnimationFrame( loop );
+
+		}
 
 	}
 

部分文件因为文件数量过多而无法显示