ソースを参照

Update ui.js

used mrdoobs' suggestion
user1713952 8 年 前
コミット
ecc35fa601
1 ファイル変更2 行追加3 行削除
  1. 2 3
      editor/js/libs/ui.js

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

@@ -863,9 +863,8 @@ UI.Integer.prototype.setValue = function ( value ) {
 };
 
 UI.Integer.prototype.setStep = function ( step ) {
-
-	step = Math.max(step, Math.floor(step)); // Checks that step is an integer
-	this.step = step; 
+	
+	this.step = parseInt( step ); 
 	
 	return this;