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

Editor: Commented out objectParent select box. Hangs the tab with >20.000 objects.

上级 9dfe76e0
......@@ -95,6 +95,7 @@ Sidebar.Object3D = function ( editor ) {
container.add( objectNameRow );
/*
// parent
var objectParentRow = new UI.Panel();
......@@ -104,6 +105,7 @@ Sidebar.Object3D = function ( editor ) {
objectParentRow.add( objectParent );
container.add( objectParentRow );
*/
// position
......@@ -342,6 +344,7 @@ Sidebar.Object3D = function ( editor ) {
if ( object !== null ) {
/*
if ( object.parent !== null ) {
var newParentId = parseInt( objectParent.getValue() );
......@@ -353,6 +356,7 @@ Sidebar.Object3D = function ( editor ) {
}
}
*/
object.position.x = objectPositionX.getValue();
object.position.y = objectPositionY.getValue();
......@@ -448,7 +452,7 @@ Sidebar.Object3D = function ( editor ) {
function updateRows( object ) {
var properties = {
'parent': objectParentRow,
// 'parent': objectParentRow,
'fov': objectFovRow,
'near': objectNearRow,
'far': objectFarRow,
......@@ -505,6 +509,7 @@ Sidebar.Object3D = function ( editor ) {
} );
/*
signals.sceneGraphChanged.add( function () {
var scene = editor.scene;
......@@ -519,6 +524,7 @@ Sidebar.Object3D = function ( editor ) {
objectParent.setOptions( options );
} );
*/
signals.objectChanged.add( function ( object ) {
......@@ -535,11 +541,13 @@ Sidebar.Object3D = function ( editor ) {
objectUUID.setValue( object.uuid );
objectName.setValue( object.name );
/*
if ( object.parent !== null ) {
objectParent.setValue( object.parent.id );
}
*/
objectPositionX.setValue( object.position.x );
objectPositionY.setValue( object.position.y );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册