2
0
Эх сурвалжийг харах

Update OBJLoader2.html

In the code in the documentation  is "event.detail.loaderRootNode", but it returns a object3d as in the live example.
Daniel Fernandes Gonçalves de Oliveira 6 жил өмнө
parent
commit
caca0a2e2e

+ 2 - 2
docs/examples/en/loaders/OBJLoader2.html

@@ -25,8 +25,8 @@
 		var loader = new THREE.OBJLoader2();
 
 		// function called on successful load
-		var callbackOnLoad = function ( event ) {
-			scene.add( event.detail.loaderRootNode );
+		var callbackOnLoad = function ( object3d ) {
+			scene.add( object3d );
 		};
 
 		// load a resource from provided URL synchronously