提交 cea04d51 编写于 作者: F Fernando Serrano

Added saveString

上级 8550fc9c
......@@ -188,10 +188,9 @@
scene.add( object );
*/
var gltfExporter = new THREE.GLTFExporter();
gltfExporter.parse(scene);
// gltfExporter.parse(scene);
//console.log(JSON.stringify(gltfExporter.parse(scene), null, 2));
//saveString( gltfExporter.parse(scene), 'model.gltf' );
saveString( JSON.stringify(gltfExporter.parse(scene),null, 2), 'scene.gltf' );
//
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册