Skip to content

Commit

Permalink
Merge pull request #12751 from takahirox/UpdateGLTFLoaderMessage
Browse files Browse the repository at this point in the history
Update GLTFLoader error message for legacy file detection.
  • Loading branch information
mrdoob authored Nov 26, 2017
2 parents 4ffb5be + bcd9984 commit c09413e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/js/loaders/GLTFLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ THREE.GLTFLoader = ( function () {

if ( json.asset === undefined || json.asset.version[ 0 ] < 2 ) {

if ( onError ) onError( new Error( 'THREE.GLTFLoader: Unsupported asset. glTF versions >=2.0 are supported.' ) );
if ( onError ) onError( new Error( 'THREE.GLTFLoader: Unsupported asset. glTF versions >=2.0 are supported. Use LegacyGLTFLoader instead.' ) );
return;

}
Expand Down Expand Up @@ -421,7 +421,7 @@ THREE.GLTFLoader = ( function () {

} else if ( this.header.version < 2.0 ) {

throw new Error( 'THREE.GLTFLoader: Legacy binary file detected. Use GLTFLoader instead.' );
throw new Error( 'THREE.GLTFLoader: Legacy binary file detected. Use LegacyGLTFLoader instead.' );

}

Expand Down

0 comments on commit c09413e

Please sign in to comment.