瀏覽代碼

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

File diff suppressed because it is too large
+ 1 - 197
build/three.min.js


+ 20 - 2
build/three.module.js

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

Some files were not shown because too many files changed in this diff