|
@@ -184,6 +184,24 @@ Menubar.File = function ( editor ) {
|
|
|
|
|
|
options.add( new UI.HorizontalRule() );
|
|
|
|
|
|
+ // Export DAE
|
|
|
+
|
|
|
+ var option = new UI.Row();
|
|
|
+ option.setClass( 'option' );
|
|
|
+ option.setTextContent( 'Export DAE' );
|
|
|
+ option.onClick( function () {
|
|
|
+
|
|
|
+ var exporter = new THREE.ColladaExporter();
|
|
|
+
|
|
|
+ exporter.parse( editor.scene, function ( result ) {
|
|
|
+
|
|
|
+ saveString( result.data, 'scene.dae' );
|
|
|
+
|
|
|
+ } );
|
|
|
+
|
|
|
+ } );
|
|
|
+ options.add( option );
|
|
|
+
|
|
|
// Export GLB
|
|
|
|
|
|
var option = new UI.Row();
|
|
@@ -200,7 +218,7 @@ Menubar.File = function ( editor ) {
|
|
|
// forceIndices: true, forcePowerOfTwoTextures: true
|
|
|
// to allow compatibility with facebook
|
|
|
}, { binary: true, forceIndices: true, forcePowerOfTwoTextures: true } );
|
|
|
-
|
|
|
+
|
|
|
} );
|
|
|
options.add( option );
|
|
|
|