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

Editor: Merged geometry exporter options.

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