Pārlūkot izejas kodu

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

James Baicoianu 11 gadi atpakaļ
vecāks
revīzija
886be71ed9
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  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 );
 
-	THREE.Object3D.prototype.clone.call( this, object );
+	THREE.Object3D.prototype.clone.call( this, object, recursive );
 
 	return object;