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

Editor: Simplified Outliner padding.

上级 814586a9
......@@ -148,7 +148,8 @@ Sidebar.Scene = function ( editor ) {
var object = objects[ i ];
var html = pad + '<span class="type ' + object.type + '"></span> ' + object.name;
var html = '<span style="margin-right:' + pad + 'px"></span>';
html += '<span class="type ' + object.type + '"></span> ' + object.name;
if ( object instanceof THREE.Mesh ) {
......@@ -164,11 +165,11 @@ Sidebar.Scene = function ( editor ) {
options.push( { value: object.id, html: html } );
addObjects( object.children, pad + '&nbsp;&nbsp;&nbsp;' );
addObjects( object.children, pad + 10 );
}
} )( scene.children, '&nbsp;&nbsp;&nbsp;' );
} )( scene.children, 0 );
outliner.setOptions( options );
......@@ -232,4 +233,4 @@ Sidebar.Scene = function ( editor ) {
return container;
}
};
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册