瀏覽代碼

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 5 年之前
父節點
當前提交
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();
 		var loader = new THREE.OBJLoader2();
 
 
 		// function called on successful load
 		// 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
 		// load a resource from provided URL synchronously