Просмотр исходного кода

removed dependency on TGALoader

Lewy Blue 6 лет назад
Родитель
Сommit
bcf436efbc
3 измененных файлов с 3 добавлено и 4 удалено
  1. 1 1
      examples/js/loaders/FBXLoader.js
  2. 1 2
      examples/jsm/loaders/FBXLoader.js
  3. 1 1
      utils/modularize.js

+ 1 - 1
examples/js/loaders/FBXLoader.js

@@ -288,7 +288,7 @@ THREE.FBXLoader = ( function () {
 
 				case 'tga':
 
-					if( THREE.Loader.Handlers.get( '.tga' ) === null ) {
+					if ( THREE.Loader.Handlers.get( '.tga' ) === null ) {
 
 						console.warn( 'FBXLoader: TGA loader not found, skipping ', fileName );
 

+ 1 - 2
examples/jsm/loaders/FBXLoader.js

@@ -64,7 +64,6 @@ import {
 	VertexColors
 } from "../../../build/three.module.js";
 import { Zlib } from "../libs/inflate.module.min.js";
-import { TGALoader } from "../loaders/TGALoader.js";
 import { NURBSCurve } from "../curves/NURBSCurve.js";
 
 
@@ -337,7 +336,7 @@ var FBXLoader = ( function () {
 
 				case 'tga':
 
-					if( Loader.Handlers.get( '.tga' ) === null ) {
+					if ( Loader.Handlers.get( '.tga' ) === null ) {
 
 						console.warn( 'FBXLoader: TGA loader not found, skipping ', fileName );
 

+ 1 - 1
utils/modularize.js

@@ -88,7 +88,7 @@ var files = [
 	{ path: 'loaders/DRACOLoader.js', dependencies: [], ignoreList: [ 'LoadingManager' ] },
 	{ path: 'loaders/EXRLoader.js', dependencies: [], ignoreList: [] },
 	{ path: 'loaders/EquirectangularToCubeGenerator.js', dependencies: [], ignoreList: [] },
-	{ path: 'loaders/FBXLoader.js', dependencies: [ { name: 'Zlib', path: 'libs/inflate.module.min.js' }, { name: 'TGALoader', path: 'loaders/TGALoader.js' }, { name: 'NURBSCurve', path: 'curves/NURBSCurve.js' } ], ignoreList: [] },
+	{ path: 'loaders/FBXLoader.js', dependencies: [ { name: 'Zlib', path: 'libs/inflate.module.min.js' }, { name: 'NURBSCurve', path: 'curves/NURBSCurve.js' } ], ignoreList: [] },
 	{ path: 'loaders/GCodeLoader.js', dependencies: [], ignoreList: [] },
 	{ path: 'loaders/GLTFLoader.js', dependencies: [], ignoreList: [ 'NoSide', 'Matrix2', 'Camera', 'Texture' ] },
 	{ path: 'loaders/HDRCubeTextureLoader.js', dependencies: [ { name: 'RGBELoader', path: 'loaders/RGBELoader.js' } ], ignoreList: [] },