Skip to content

Commit

Permalink
Merge pull request #19790 from troy351/patch-2
Browse files Browse the repository at this point in the history
Editor: add TGALoader support
  • Loading branch information
mrdoob committed Jul 4, 2020
2 parents d6fcf4a + 3e360a3 commit 3ca144c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions editor/js/Loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import { TDSLoader } from '../../examples/jsm/loaders/TDSLoader.js';
import { VTKLoader } from '../../examples/jsm/loaders/VTKLoader.js';
import { VRMLLoader } from '../../examples/jsm/loaders/VRMLLoader.js';

import { TGALoader } from '../../examples/jsm/loaders/TGALoader.js';

import { AddObjectCommand } from './commands/AddObjectCommand.js';
import { SetSceneCommand } from './commands/SetSceneCommand.js';

Expand Down Expand Up @@ -66,6 +68,8 @@ function Loader( editor ) {
return url;

} );

manager.addHandler( /\.tga$/i, new TGALoader() );

for ( var i = 0; i < files.length; i ++ ) {

Expand Down

0 comments on commit 3ca144c

Please sign in to comment.