提交 0ddc8153 编写于 作者: M Mugen87

GridHelper: Simplify .clone()

上级 9f7f38b5
......@@ -72,9 +72,7 @@ GridHelper.prototype = Object.assign( Object.create( LineSegments.prototype ), {
clone: function () {
var parameters = this.parameters;
return new this.constructor( parameters.size, parameters.divisions, parameters.color1, parameters.color2 );
return new this.constructor().copy( this );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册