瀏覽代碼

merge conflicts

Guilherme Avila 6 年之前
父節點
當前提交
2d0e8f48a9
共有 3 個文件被更改,包括 3 次插入43 次删除
  1. 0 0
      build/three.js
  2. 0 0
      build/three.module.js
  3. 3 43
      examples/jsm/loaders/GLTFLoader.js

文件差異過大導致無法顯示
+ 0 - 0
build/three.js


文件差異過大導致無法顯示
+ 0 - 0
build/three.module.js


+ 3 - 43
examples/jsm/loaders/GLTFLoader.js

@@ -160,9 +160,9 @@ var GLTFLoader = ( function () {
 			loader.setPath( this.path );
 			loader.setPath( this.path );
 			loader.setResponseType( 'arraybuffer' );
 			loader.setResponseType( 'arraybuffer' );
 
 
-			if ( scope.crossOrigin === 'use-credentials' ) {
+			if ( this.options.crossOrigin === 'use-credentials' ) {
 
 
-				loader.setWithCredentials( true );
+				this.fileLoader.setWithCredentials( true );
 
 
 			}
 			}
 
 
@@ -2973,52 +2973,12 @@ var GLTFLoader = ( function () {
 
 
 				}
 				}
 
 
-				var outputArray = outputAccessor.array;
-
-				if ( outputAccessor.normalized ) {
-
-					var scale;
-
-					if ( outputArray.constructor === Int8Array ) {
-
-						scale = 1 / 127;
-
-					} else if ( outputArray.constructor === Uint8Array ) {
-
-						scale = 1 / 255;
-
-					} else if ( outputArray.constructor == Int16Array ) {
-
-						scale = 1 / 32767;
-
-					} else if ( outputArray.constructor === Uint16Array ) {
-
-						scale = 1 / 65535;
-
-					} else {
-
-						throw new Error( 'THREE.GLTFLoader: Unsupported output accessor component type.' );
-
-					}
-
-					var scaled = new Float32Array( outputArray.length );
-
-					for ( var j = 0, jl = outputArray.length; j < jl; j ++ ) {
-
-						scaled[j] = outputArray[j] * scale;
-
-					}
-
-					outputArray = scaled;
-
-				}
-
 				for ( var j = 0, jl = targetNames.length; j < jl; j ++ ) {
 				for ( var j = 0, jl = targetNames.length; j < jl; j ++ ) {
 
 
 					var track = new TypedKeyframeTrack(
 					var track = new TypedKeyframeTrack(
 						targetNames[ j ] + '.' + PATH_PROPERTIES[ target.path ],
 						targetNames[ j ] + '.' + PATH_PROPERTIES[ target.path ],
 						inputAccessor.array,
 						inputAccessor.array,
-						outputArray,
+						outputAccessor.array,
 						interpolation
 						interpolation
 					);
 					);
 
 

部分文件因文件數量過多而無法顯示