Răsfoiți Sursa

Editor: Clean up.

Mr.doob 3 ani în urmă
părinte
comite
f36dad49fb
2 a modificat fișierele cu 1 adăugiri și 4 ștergeri
  1. 0 2
      editor/js/Sidebar.Animation.js
  2. 1 2
      editor/js/Viewport.Selector.js

+ 0 - 2
editor/js/Sidebar.Animation.js

@@ -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  ) );
 

+ 1 - 2
editor/js/Viewport.Selector.js

@@ -5,7 +5,6 @@ class Selector {
 		const signals = editor.signals;
 
 		this.editor = editor;
-		this.config = editor.config;
 		this.signals = signals;
 
 		// signals
@@ -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 );
 
 	}