浏览代码

Remove recursive arg from Mesh.clone()

dubejf 10 年之前
父节点
当前提交
6cc768f0b4
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/objects/Mesh.js

+ 3 - 3
src/objects/Mesh.js

@@ -305,16 +305,16 @@ THREE.Mesh.prototype.raycast = ( function () {
 
 }() );
 
-THREE.Mesh.prototype.clone = function ( recursive ) {
+THREE.Mesh.prototype.clone = function () {
 
 	var mesh = new THREE.Mesh( this.geometry, this.material );
 	return this.cloneProperties( mesh );
 
 };
 
-THREE.Mesh.prototype.cloneProperties = function ( mesh, recursive ) {
+THREE.Mesh.prototype.cloneProperties = function ( mesh ) {
 
-	THREE.Object3D.prototype.cloneProperties.call( this, mesh, recursive );
+	THREE.Object3D.prototype.cloneProperties.call( this, mesh );
 
 	return mesh;