提交 2e446273 编写于 作者: M Mr.doob

Editor: Merged geometry exporter options.

上级 814666cb
......@@ -39,7 +39,7 @@
.menubar .menu .options {
padding: 5px 0px;
background-color: #fff;
width: 170px;
width: 140px;
}
.menubar .menu .options hr {
......
......@@ -67,28 +67,25 @@ Menubar.File = function ( editor ) {
options.add( new UI.HorizontalRule() );
// export buffergeometry
// export geometry
var option = new UI.Panel();
option.setClass( 'option' );
option.setTextContent( 'Export BufferGeometry' );
option.setTextContent( 'Export Geometry' );
option.onClick( function () {
exportGeometry( THREE.BufferGeometryExporter );
} );
options.add( option );
var geometry = editor.selected.geometry;
if ( geometry instanceof THREE.BufferGeometry ) {
// export geometry
exportGeometry( THREE.BufferGeometryExporter );
var option = new UI.Panel();
option.setClass( 'option' );
option.setTextContent( 'Export Geometry' );
option.onClick( function () {
} else if ( geometry instanceof THREE.Geometry ) {
exportGeometry( THREE.GeometryExporter );
}
} );
options.add( option );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册