ycw il y a 1 an
Parent
commit
678c80cabf

+ 2 - 2
editor/js/Loader.js

@@ -99,7 +99,7 @@ function Loader( editor ) {
 
 					}, function ( error ) {
 
-						console.error( error )
+						console.error( error );
 
 					} );
 
@@ -941,7 +941,7 @@ function Loader( editor ) {
 				{
 
 					const loader = await createGLTFLoader( manager );
-					
+
 					loader.parse( strFromU8( file ), '', function ( result ) {
 
 						const scene = result.scene;

+ 1 - 1
editor/js/Menubar.View.js

@@ -97,7 +97,7 @@ function MenubarView( editor ) {
 
 					}
 
-			} );
+				} );
 
 		}
 

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

@@ -195,7 +195,7 @@ function SidebarScene( editor ) {
 	const backgroundIntensity = new UINumber( 1 ).setWidth( '40px' ).setRange( 0, Infinity ).onChange( onBackgroundChanged );
 	backgroundEquirectRow.add( backgroundIntensity );
 
-	const backgroundRotation = new UINumber( 0 ).setWidth( '40px' ).setRange( -180, 180 ).setStep( 10 ).setNudge( 0.1 ).setUnit( '°' ).onChange( onBackgroundChanged );
+	const backgroundRotation = new UINumber( 0 ).setWidth( '40px' ).setRange( - 180, 180 ).setStep( 10 ).setNudge( 0.1 ).setUnit( '°' ).onChange( onBackgroundChanged );
 	backgroundEquirectRow.add( backgroundRotation );
 
 	container.add( backgroundEquirectRow );

+ 3 - 3
editor/js/Viewport.Pathtracer.js

@@ -17,7 +17,7 @@ function ViewportPathtracer( renderer ) {
 
 	}
 
-	function setSize( width, height ) {
+	function setSize( /* width, height */ ) {
 
 		if ( pathTracer === null ) return;
 
@@ -26,7 +26,7 @@ function ViewportPathtracer( renderer ) {
 
 	}
 
-	function setBackground( background, blurriness ) {
+	function setBackground( /* background, blurriness */ ) {
 
 		if ( pathTracer === null ) return;
 
@@ -43,7 +43,7 @@ function ViewportPathtracer( renderer ) {
 
 	}
 
-	function setEnvironment( environment ) {
+	function setEnvironment( /* environment */ ) {
 
 		if ( pathTracer === null ) return;