Browse Source

onProgress and onError callbacks for the BufferedGeometry, Material and Object Loaders

Nick Yahnke 11 years ago
parent
commit
7cd72e2306

+ 1 - 1
src/loaders/BufferGeometryLoader.js

@@ -22,7 +22,7 @@ THREE.BufferGeometryLoader.prototype = {
 
 
 			onLoad( scope.parse( JSON.parse( text ) ) );
 			onLoad( scope.parse( JSON.parse( text ) ) );
 
 
-		} );
+		}, onProgress, onError );
 
 
 	},
 	},
 
 

+ 1 - 1
src/loaders/MaterialLoader.js

@@ -22,7 +22,7 @@ THREE.MaterialLoader.prototype = {
 
 
 			onLoad( scope.parse( JSON.parse( text ) ) );
 			onLoad( scope.parse( JSON.parse( text ) ) );
 
 
-		} );
+		}, onProgress, onError );
 
 
 	},
 	},
 
 

+ 1 - 1
src/loaders/ObjectLoader.js

@@ -22,7 +22,7 @@ THREE.ObjectLoader.prototype = {
 
 
 			onLoad( scope.parse( JSON.parse( text ) ) );
 			onLoad( scope.parse( JSON.parse( text ) ) );
 
 
-		} );
+		}, onProgress, onError );
 
 
 	},
 	},