Matthias Baumann 7 سال پیش
والد
کامیت
ce4c4e2687
1فایلهای تغییر یافته به همراه4 افزوده شده و 5 حذف شده
  1. 4 5
      examples/js/loaders/STLLoader.js

+ 4 - 5
examples/js/loaders/STLLoader.js

@@ -48,20 +48,19 @@ THREE.STLLoader.prototype = {
 		loader.setResponseType( 'arraybuffer' );
 		loader.setResponseType( 'arraybuffer' );
 		loader.load( url, function ( text ) {
 		loader.load( url, function ( text ) {
 
 
-		    try {
+			try {
 
 
 				onLoad( scope.parse( text ) );
 				onLoad( scope.parse( text ) );
 
 
 			} catch ( exception ) {
 			} catch ( exception ) {
 
 
-		        if ( onError ) {
+				if ( onError ) {
 
 
-		            onError( exception );
+					onError( exception );
 
 
 				}
 				}
 
 
-		    }
-
+			}
 
 
 		}, onProgress, onError );
 		}, onProgress, onError );