소스 검색

Updated builds.

Mr.doob 5 년 전
부모
커밋
694f3c1f69
3개의 변경된 파일155개의 추가작업 그리고 131개의 파일을 삭제
  1. 19 7
      build/three.js
  2. 117 117
      build/three.min.js
  3. 19 7
      build/three.module.js

+ 19 - 7
build/three.js

@@ -27380,17 +27380,17 @@
 
 				// process the result of raycast
 
-				if ( _instanceIntersects.length > 0 ) {
+				for ( var i = 0, l = _instanceIntersects.length; i < l; i ++ ) {
 
-					_instanceIntersects[ 0 ].instanceId = instanceId;
-					_instanceIntersects[ 0 ].object = this;
-
-					intersects.push( _instanceIntersects[ 0 ] );
-
-					_instanceIntersects.length = 0;
+					var intersect = _instanceIntersects[ i ];
+					intersect.instanceId = instanceId;
+					intersect.object = this;
+					intersects.push( intersect );
 
 				}
 
+				_instanceIntersects.length = 0;
+
 			}
 
 		},
@@ -35898,6 +35898,18 @@
 
 		load: function ( /* url, onLoad, onProgress, onError */ ) {},
 
+		loadAsync: function ( url, onProgress ) {
+
+			var scope = this;
+
+			return new Promise( function ( resolve, reject ) {
+
+				scope.load( url, resolve, onProgress, reject );
+
+			} );
+
+		},
+
 		parse: function ( /* data */ ) {},
 
 		setCrossOrigin: function ( crossOrigin ) {

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 117 - 117
build/three.min.js


+ 19 - 7
build/three.module.js

@@ -27372,17 +27372,17 @@ InstancedMesh.prototype = Object.assign( Object.create( Mesh.prototype ), {
 
 			// process the result of raycast
 
-			if ( _instanceIntersects.length > 0 ) {
+			for ( var i = 0, l = _instanceIntersects.length; i < l; i ++ ) {
 
-				_instanceIntersects[ 0 ].instanceId = instanceId;
-				_instanceIntersects[ 0 ].object = this;
-
-				intersects.push( _instanceIntersects[ 0 ] );
-
-				_instanceIntersects.length = 0;
+				var intersect = _instanceIntersects[ i ];
+				intersect.instanceId = instanceId;
+				intersect.object = this;
+				intersects.push( intersect );
 
 			}
 
+			_instanceIntersects.length = 0;
+
 		}
 
 	},
@@ -35890,6 +35890,18 @@ Object.assign( Loader.prototype, {
 
 	load: function ( /* url, onLoad, onProgress, onError */ ) {},
 
+	loadAsync: function ( url, onProgress ) {
+
+		var scope = this;
+
+		return new Promise( function ( resolve, reject ) {
+
+			scope.load( url, resolve, onProgress, reject );
+
+		} );
+
+	},
+
 	parse: function ( /* data */ ) {},
 
 	setCrossOrigin: function ( crossOrigin ) {

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.