Prechádzať zdrojové kódy

Editor: Added BufferAttribute.itemSize info.

Mr.doob 9 rokov pred
rodič
commit
87bd66bbfb

+ 3 - 1
editor/js/Sidebar.Geometry.BufferGeometry.js

@@ -34,9 +34,11 @@ Sidebar.Geometry.BufferGeometry = function ( editor ) {
 
 			for ( var name in attributes ) {
 
+				var attribute = attributes[ name ];
+
 				var panel = new UI.Row();
 				panel.add( new UI.Text( name ).setWidth( '90px' ) );
-				panel.add( new UI.Text( ( attributes[ name ].count ).format() ).setFontSize( '12px' ) );
+				panel.add( new UI.Text( ( attribute.count ).format() + ' (' + attribute.itemSize + ')' ).setFontSize( '12px' ) );
 				container.add( panel );
 
 			}