浏览代码

Editor: Increased numbers precision to 3.

Mr.doob 1 年之前
父节点
当前提交
b50d098eb7
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      editor/js/libs/ui.js

+ 2 - 2
editor/js/libs/ui.js

@@ -434,7 +434,7 @@ class UICheckbox extends UIElement {
 			// Workaround for TransformControls blocking events in Viewport.Controls checkboxes
 			// Workaround for TransformControls blocking events in Viewport.Controls checkboxes
 
 
 			event.stopPropagation();
 			event.stopPropagation();
-		
+
 		} );
 		} );
 
 
 		this.setValue( boolean );
 		this.setValue( boolean );
@@ -533,7 +533,7 @@ class UINumber extends UIElement {
 		this.min = - Infinity;
 		this.min = - Infinity;
 		this.max = Infinity;
 		this.max = Infinity;
 
 
-		this.precision = 2;
+		this.precision = 3;
 		this.step = 1;
 		this.step = 1;
 		this.unit = '';
 		this.unit = '';
 		this.nudge = 0.01;
 		this.nudge = 0.01;