浏览代码

Editor: Clean up.

Mr.doob 5 年之前
父节点
当前提交
6ce6848036
共有 2 个文件被更改,包括 5 次插入3 次删除
  1. 2 2
      editor/js/Sidebar.Project.js
  2. 3 1
      editor/js/libs/app/index.html

+ 2 - 2
editor/js/Sidebar.Project.js

@@ -150,10 +150,10 @@ function SidebarProject( editor ) {
 		var value = this.getValue();
 
 		config.setKey( 'project/renderer/toneMapping', parseFloat( value ) );
-		updateRenderer();
-
 		toneMappingExposure.setDisplay( value === '0' ? 'none' : '' );
 
+		updateRenderer();
+
 	} );
 	toneMappingSelect.setValue( config.getKey( 'project/renderer/toneMapping' ) );
 

+ 3 - 1
editor/js/libs/app/index.html

@@ -11,7 +11,9 @@
 				font-size: 11px;
 				background-color: #000;
 				margin: 0px;
-				overflow: hidden;
+			}
+			canvas {
+				display: block;
 			}
 		</style>
 	</head>