Skip to content

Commit

Permalink
Editor: Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed May 26, 2022
1 parent 4e0930a commit f36dad4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions editor/js/Sidebar.Animation.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ function SidebarAnimation( editor ) {
const button = new UIButton( getButtonText( action ) );
button.onClick( function () {

console.log( action );

action.isRunning() ? action.stop() : action.play();
button.setTextContent( getButtonText( action ) );

Expand Down
3 changes: 1 addition & 2 deletions editor/js/Viewport.Selector.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ class Selector {
const signals = editor.signals;

this.editor = editor;
this.config = editor.config;
this.signals = signals;

// signals
Expand Down Expand Up @@ -51,8 +50,8 @@ class Selector {
}

this.editor.selected = object;
this.editor.config.setKey( 'selected', uuid );

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

}
Expand Down

0 comments on commit f36dad4

Please sign in to comment.