Преглед на файлове

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 години
родител
ревизия
caca0a2e2e
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      docs/examples/en/loaders/OBJLoader2.html

+ 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