浏览代码

Editor: Clean up. (#27881)

Michael Herzog 1 年之前
父节点
当前提交
1e92838c1b
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 3 3
      editor/js/Sidebar.Project.Image.js
  2. 1 1
      editor/js/Sidebar.Script.js

+ 3 - 3
editor/js/Sidebar.Project.Image.js

@@ -2,7 +2,7 @@ import * as THREE from 'three';
 
 import { UIBreak, UIButton, UIInteger, UIPanel, UIRow, UISelect, UIText } from './libs/ui.js';
 
-import { ViewportPathtracer } from './Viewport.Pathtracer.js';
+// import { ViewportPathtracer } from './Viewport.Pathtracer.js';
 
 function SidebarProjectImage( editor ) {
 
@@ -66,7 +66,7 @@ function SidebarProjectImage( editor ) {
 
 		const scene = loader.parse( json.scene );
 
-		const renderer = new THREE.WebGLRenderer( { antialias: true } );		
+		const renderer = new THREE.WebGLRenderer( { antialias: true } );
 		renderer.setSize( imageWidth.getValue(), imageHeight.getValue() );
 
 		if ( project.shadows !== undefined ) renderer.shadowMap.enabled = project.shadows;
@@ -129,7 +129,7 @@ function SidebarProjectImage( editor ) {
 					if ( output.closed === true ) return;
 
 					requestAnimationFrame( animate );
-				
+
 					pathtracer.update();
 
 					// status.textContent = Math.floor( samples );

+ 1 - 1
editor/js/Sidebar.Script.js

@@ -1,4 +1,4 @@
-import { UIPanel, UIBreak, UIText, UIButton, UIRow, UIInput } from './libs/ui.js';
+import { UIPanel, UIBreak, UIButton, UIRow, UIInput } from './libs/ui.js';
 
 import { AddScriptCommand } from './commands/AddScriptCommand.js';
 import { SetScriptValueCommand } from './commands/SetScriptValueCommand.js';