|
@@ -7,11 +7,17 @@ Sidebar.Scene = function ( editor ) {
|
|
|
container.addStatic( new UI.Text( 'SCENE' ) );
|
|
|
container.add( new UI.Break() );
|
|
|
|
|
|
+ var ignoreObjectSelectedSignal = false;
|
|
|
+
|
|
|
var outliner = new UI.FancySelect().setId( 'outliner' );
|
|
|
outliner.onChange( function () {
|
|
|
|
|
|
+ ignoreObjectSelectedSignal = true;
|
|
|
+
|
|
|
editor.selectById( parseInt( outliner.getValue() ) );
|
|
|
|
|
|
+ ignoreObjectSelectedSignal = false;
|
|
|
+
|
|
|
} );
|
|
|
container.add( outliner );
|
|
|
container.add( new UI.Break() );
|
|
@@ -194,6 +200,8 @@ Sidebar.Scene = function ( editor ) {
|
|
|
|
|
|
signals.objectSelected.add( function ( object ) {
|
|
|
|
|
|
+ if ( ignoreObjectSelectedSignal === true ) return;
|
|
|
+
|
|
|
outliner.setValue( object !== null ? object.id : null );
|
|
|
|
|
|
} );
|