From 8ebfc03c4adc6f3bb946462e6358cdadbbcde70d Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Mon, 16 May 2016 12:50:35 -0400 Subject: [PATCH] Updated builds. --- build/three.js | 15 ++++++++++++++- build/three.min.js | 3 ++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/build/three.js b/build/three.js index da08df9f1b..756c46692f 100644 --- a/build/three.js +++ b/build/three.js @@ -18275,7 +18275,20 @@ THREE.FontLoader.prototype = { var loader = new THREE.XHRLoader( this.manager ); loader.load( url, function ( text ) { - var font = scope.parse( JSON.parse( text.substring( 65, text.length - 2 ) ) ); + var json; + + try { + + json = JSON.parse( text ); + + } catch ( e ) { + + console.warn( 'THREE.FontLoader: typeface.js support is being deprecated. Use typeface.json instead.' ); + json = JSON.parse( text.substring( 65, text.length - 2 ) ); + + } + + var font = scope.parse( json ); if ( onLoad ) onLoad( font ); diff --git a/build/three.min.js b/build/three.min.js index 3d0c8c7bd3..60b56dc635 100644 --- a/build/three.min.js +++ b/build/three.min.js @@ -379,7 +379,8 @@ n;break;case "vertexColors":!0===n&&(k.vertexColors=THREE.VertexColors);"face"== THREE.Loader.Handlers={handlers:[],add:function(a,b){this.handlers.push(a,b)},get:function(a){for(var b=this.handlers,c=0,d=b.length;c