Skip to content

Commit 70c63d2

Browse files
committed
Editor: Removed no longer needed code.
1 parent 466ffbd commit 70c63d2

File tree

1 file changed

+0
-52
lines changed

1 file changed

+0
-52
lines changed

editor/js/Sidebar.Object.js

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -94,18 +94,6 @@ Sidebar.Object = function ( editor ) {
9494

9595
container.add( objectNameRow );
9696

97-
/*
98-
// parent
99-
100-
var objectParentRow = new UI.Row();
101-
var objectParent = new UI.Select().setWidth( '150px' ).setFontSize( '12px' ).onChange( update );
102-
103-
objectParentRow.add( new UI.Text( 'Parent' ).setWidth( '90px' ) );
104-
objectParentRow.add( objectParent );
105-
106-
container.add( objectParentRow );
107-
*/
108-
10997
// position
11098

11199
var objectPositionRow = new UI.Row();
@@ -360,20 +348,6 @@ Sidebar.Object = function ( editor ) {
360348

361349
if ( object !== null ) {
362350

363-
/*
364-
if ( object.parent !== null ) {
365-
366-
var newParentId = parseInt( objectParent.getValue() );
367-
368-
if ( object.parent.id !== newParentId && object.id !== newParentId ) {
369-
370-
editor.execute( new MoveObjectCommand( object, editor.scene.getObjectById( newParentId ) ) );
371-
372-
}
373-
374-
}
375-
*/
376-
377351
var newPosition = new THREE.Vector3( objectPositionX.getValue(), objectPositionY.getValue(), objectPositionZ.getValue() );
378352
if ( object.position.distanceTo( newPosition ) >= 0.01 ) {
379353

@@ -507,7 +481,6 @@ Sidebar.Object = function ( editor ) {
507481
function updateRows( object ) {
508482

509483
var properties = {
510-
// 'parent': objectParentRow,
511484
'fov': objectFovRow,
512485
'near': objectNearRow,
513486
'far': objectFarRow,
@@ -567,23 +540,6 @@ Sidebar.Object = function ( editor ) {
567540

568541
} );
569542

570-
/*
571-
signals.sceneGraphChanged.add( function () {
572-
573-
var scene = editor.scene;
574-
var options = {};
575-
576-
scene.traverse( function ( object ) {
577-
578-
options[ object.id ] = object.name;
579-
580-
} );
581-
582-
objectParent.setOptions( options );
583-
584-
} );
585-
*/
586-
587543
signals.objectChanged.add( function ( object ) {
588544

589545
if ( object !== editor.selected ) return;
@@ -607,14 +563,6 @@ Sidebar.Object = function ( editor ) {
607563
objectUUID.setValue( object.uuid );
608564
objectName.setValue( object.name );
609565

610-
/*
611-
if ( object.parent !== null ) {
612-
613-
objectParent.setValue( object.parent.id );
614-
615-
}
616-
*/
617-
618566
objectPositionX.setValue( object.position.x );
619567
objectPositionY.setValue( object.position.y );
620568
objectPositionZ.setValue( object.position.z );

0 commit comments

Comments
 (0)