提交 00cd9a27 编写于 作者: M Mr.doob

Editor: BufferGeometry Attributes clean up.

上级 6bc85fe1
......@@ -20,14 +20,19 @@ Sidebar.Geometry.BufferGeometry = function ( editor ) {
container.clear();
container.setDisplay( 'block' );
var text = new UI.Text( 'Attributes' ).setWidth( '90px' );
container.add( text );
var container2 = new UI.Span().setDisplay( 'inline-block' ).setWidth( '160px' );
container.add( container2 );
var index = geometry.index;
if ( index !== null ) {
var panel = new UI.Row();
panel.add( new UI.Text( 'index' ).setWidth( '90px' ) );
panel.add( new UI.Text( ( index.count ).format() ).setFontSize( '12px' ) );
container.add( panel );
container2.add( new UI.Text( 'index' ).setWidth( '80px' ) );
container2.add( new UI.Text( ( index.count ).format() ).setFontSize( '12px' ) );
container2.add( new UI.Break() );
}
......@@ -37,10 +42,9 @@ Sidebar.Geometry.BufferGeometry = function ( editor ) {
var attribute = attributes[ name ];
var panel = new UI.Row();
panel.add( new UI.Text( name ).setWidth( '90px' ) );
panel.add( new UI.Text( ( attribute.count ).format() + ' (' + attribute.itemSize + ')' ).setFontSize( '12px' ) );
container.add( panel );
container2.add( new UI.Text( name ).setWidth( '80px' ) );
container2.add( new UI.Text( ( attribute.count ).format() + ' (' + attribute.itemSize + ')' ).setFontSize( '12px' ) );
container2.add( new UI.Break() );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册