瀏覽代碼

Editor: Clean up.

Mr.doob 2 年之前
父節點
當前提交
7d491853b3
共有 1 個文件被更改,包括 8 次插入8 次删除
  1. 8 8
      editor/js/Viewport.Camera.js

+ 8 - 8
editor/js/Viewport.Camera.js

@@ -6,11 +6,11 @@ function ViewportCamera( editor ) {
 
 
 	//
 	//
 
 
-	const cameraSelect = new UISelect();
-	cameraSelect.setPosition( 'absolute' );
-	cameraSelect.setRight( '10px' );
-	cameraSelect.setTop( '10px' );
-	cameraSelect.onChange( function () {
+	const select = new UISelect();
+	select.setPosition( 'absolute' );
+	select.setRight( '10px' );
+	select.setTop( '10px' );
+	select.onChange( function () {
 
 
 		editor.setViewportCamera( this.getValue() );
 		editor.setViewportCamera( this.getValue() );
 
 
@@ -36,12 +36,12 @@ function ViewportCamera( editor ) {
 
 
 		}
 		}
 
 
-		cameraSelect.setOptions( options );
-		cameraSelect.setValue( editor.viewportCamera.uuid );
+		select.setOptions( options );
+		select.setValue( editor.viewportCamera.uuid );
 
 
 	}
 	}
 
 
-	return cameraSelect;
+	return select;
 
 
 }
 }