提交 34ae7d6a 编写于 作者: B Bart McLeod 提交者: Mr.doob

Fixed overwriting the scene instead of adding to it in VRML loader example....

Fixed overwriting the scene instead of adding to it in VRML loader example. This preserves the lighting and the controls, so that the Box can be spinned and is lit.
上级 9cd8eedf
......@@ -88,7 +88,7 @@
var loader = new THREE.VRMLLoader();
loader.addEventListener( 'load', function ( event ) {
scene = event.content;
scene.add(event.content);
} );
loader.load( "models/vrml/simple.wrl" );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册