提交 c60105d9 编写于 作者: T Tristan VALCKE

Improve Sphere closure performance

上级 563060ae
......@@ -28,12 +28,10 @@ Object.assign( Sphere.prototype, {
setFromPoints: function () {
var box;
var box = new Box3();
return function setFromPoints( points, optionalCenter ) {
if ( box === undefined ) box = new Box3(); // see #10547
var center = this.center;
if ( optionalCenter !== undefined ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册