Skip to content

Commit

Permalink
Editor: Fixed Selector.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed May 26, 2022
1 parent c26896d commit 4e0930a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions editor/js/Viewport.Selector.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ class Selector {
this.editor = editor;
this.config = editor.config;
this.signals = signals;
this.selected = null;

// signals

Expand Down Expand Up @@ -41,7 +40,7 @@ class Selector {

select( object ) {

if ( this.selected === object ) return;
if ( this.editor.selected === object ) return;

let uuid = null;

Expand All @@ -51,7 +50,7 @@ class Selector {

}

this.selected = object;
this.editor.selected = object;

this.config.setKey( 'selected', uuid );
this.signals.objectSelected.dispatch( object );
Expand Down

0 comments on commit 4e0930a

Please sign in to comment.