@@ -94,18 +94,6 @@ Sidebar.Object = function ( editor ) {
94
94
95
95
container . add ( objectNameRow ) ;
96
96
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
-
109
97
// position
110
98
111
99
var objectPositionRow = new UI . Row ( ) ;
@@ -360,20 +348,6 @@ Sidebar.Object = function ( editor ) {
360
348
361
349
if ( object !== null ) {
362
350
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
-
377
351
var newPosition = new THREE . Vector3 ( objectPositionX . getValue ( ) , objectPositionY . getValue ( ) , objectPositionZ . getValue ( ) ) ;
378
352
if ( object . position . distanceTo ( newPosition ) >= 0.01 ) {
379
353
@@ -507,7 +481,6 @@ Sidebar.Object = function ( editor ) {
507
481
function updateRows ( object ) {
508
482
509
483
var properties = {
510
- // 'parent': objectParentRow,
511
484
'fov' : objectFovRow ,
512
485
'near' : objectNearRow ,
513
486
'far' : objectFarRow ,
@@ -567,23 +540,6 @@ Sidebar.Object = function ( editor ) {
567
540
568
541
} ) ;
569
542
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
-
587
543
signals . objectChanged . add ( function ( object ) {
588
544
589
545
if ( object !== editor . selected ) return ;
@@ -607,14 +563,6 @@ Sidebar.Object = function ( editor ) {
607
563
objectUUID . setValue ( object . uuid ) ;
608
564
objectName . setValue ( object . name ) ;
609
565
610
- /*
611
- if ( object.parent !== null ) {
612
-
613
- objectParent.setValue( object.parent.id );
614
-
615
- }
616
- */
617
-
618
566
objectPositionX . setValue ( object . position . x ) ;
619
567
objectPositionY . setValue ( object . position . y ) ;
620
568
objectPositionZ . setValue ( object . position . z ) ;
0 commit comments