提交 43db54b5 编写于 作者: S sunag

speed vs readability

上级 9474471d
......@@ -33,7 +33,7 @@ THREE.FloatNode.prototype.generateReadonly = function ( builder, output, uuid, t
var value = this.number;
return builder.format( ~~value !== value ? value : value + ".0", type, output );
return builder.format( Math.floor( value ) !== value ? value : value + ".0", type, output );
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册