|
@@ -95,6 +95,7 @@ Sidebar.Object3D = function ( editor ) {
|
|
|
|
|
|
container.add( objectNameRow );
|
|
container.add( objectNameRow );
|
|
|
|
|
|
|
|
+ /*
|
|
// parent
|
|
// parent
|
|
|
|
|
|
var objectParentRow = new UI.Panel();
|
|
var objectParentRow = new UI.Panel();
|
|
@@ -104,6 +105,7 @@ Sidebar.Object3D = function ( editor ) {
|
|
objectParentRow.add( objectParent );
|
|
objectParentRow.add( objectParent );
|
|
|
|
|
|
container.add( objectParentRow );
|
|
container.add( objectParentRow );
|
|
|
|
+ */
|
|
|
|
|
|
// position
|
|
// position
|
|
|
|
|
|
@@ -342,6 +344,7 @@ Sidebar.Object3D = function ( editor ) {
|
|
|
|
|
|
if ( object !== null ) {
|
|
if ( object !== null ) {
|
|
|
|
|
|
|
|
+ /*
|
|
if ( object.parent !== null ) {
|
|
if ( object.parent !== null ) {
|
|
|
|
|
|
var newParentId = parseInt( objectParent.getValue() );
|
|
var newParentId = parseInt( objectParent.getValue() );
|
|
@@ -353,6 +356,7 @@ Sidebar.Object3D = function ( editor ) {
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
|
|
+ */
|
|
|
|
|
|
object.position.x = objectPositionX.getValue();
|
|
object.position.x = objectPositionX.getValue();
|
|
object.position.y = objectPositionY.getValue();
|
|
object.position.y = objectPositionY.getValue();
|
|
@@ -448,7 +452,7 @@ Sidebar.Object3D = function ( editor ) {
|
|
function updateRows( object ) {
|
|
function updateRows( object ) {
|
|
|
|
|
|
var properties = {
|
|
var properties = {
|
|
- 'parent': objectParentRow,
|
|
|
|
|
|
+ // 'parent': objectParentRow,
|
|
'fov': objectFovRow,
|
|
'fov': objectFovRow,
|
|
'near': objectNearRow,
|
|
'near': objectNearRow,
|
|
'far': objectFarRow,
|
|
'far': objectFarRow,
|
|
@@ -505,6 +509,7 @@ Sidebar.Object3D = function ( editor ) {
|
|
|
|
|
|
} );
|
|
} );
|
|
|
|
|
|
|
|
+ /*
|
|
signals.sceneGraphChanged.add( function () {
|
|
signals.sceneGraphChanged.add( function () {
|
|
|
|
|
|
var scene = editor.scene;
|
|
var scene = editor.scene;
|
|
@@ -519,6 +524,7 @@ Sidebar.Object3D = function ( editor ) {
|
|
objectParent.setOptions( options );
|
|
objectParent.setOptions( options );
|
|
|
|
|
|
} );
|
|
} );
|
|
|
|
+ */
|
|
|
|
|
|
signals.objectChanged.add( function ( object ) {
|
|
signals.objectChanged.add( function ( object ) {
|
|
|
|
|
|
@@ -535,11 +541,13 @@ Sidebar.Object3D = function ( editor ) {
|
|
objectUUID.setValue( object.uuid );
|
|
objectUUID.setValue( object.uuid );
|
|
objectName.setValue( object.name );
|
|
objectName.setValue( object.name );
|
|
|
|
|
|
|
|
+ /*
|
|
if ( object.parent !== null ) {
|
|
if ( object.parent !== null ) {
|
|
|
|
|
|
objectParent.setValue( object.parent.id );
|
|
objectParent.setValue( object.parent.id );
|
|
|
|
|
|
}
|
|
}
|
|
|
|
+ */
|
|
|
|
|
|
objectPositionX.setValue( object.position.x );
|
|
objectPositionX.setValue( object.position.x );
|
|
objectPositionY.setValue( object.position.y );
|
|
objectPositionY.setValue( object.position.y );
|