Browse Source

Pass recursive flag through from THREE.Mesh.clone() to THREE.Object3D.clone()

James Baicoianu 11 years ago
parent
commit
886be71ed9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/objects/Mesh.js

+ 2 - 2
src/objects/Mesh.js

@@ -52,11 +52,11 @@ THREE.Mesh.prototype.getMorphTargetIndexByName = function ( name ) {
 
 
 };
 };
 
 
-THREE.Mesh.prototype.clone = function ( object ) {
+THREE.Mesh.prototype.clone = function ( object, recursive ) {
 
 
 	if ( object === undefined ) object = new THREE.Mesh( this.geometry, this.material );
 	if ( object === undefined ) object = new THREE.Mesh( this.geometry, this.material );
 
 
-	THREE.Object3D.prototype.clone.call( this, object );
+	THREE.Object3D.prototype.clone.call( this, object, recursive );
 
 
 	return object;
 	return object;