Browse Source

Editor: Minor UI improvement.

Mr.doob 8 years ago
parent
commit
9c41aee9aa
1 changed files with 3 additions and 1 deletions
  1. 3 1
      editor/js/libs/ui.js

+ 3 - 1
editor/js/libs/ui.js

@@ -800,7 +800,9 @@ UI.Number.prototype.setValue = function ( value ) {
 		if ( value > this.max ) value = this.max;
 
 		this.value = value;
-		this.dom.value = value.toFixed( this.precision ) + ' ' + this.unit;
+		this.dom.value = value.toFixed( this.precision );
+
+		if ( this.unit !== '' ) this.dom.value += ' ' + this.unit;
 
 	}