|
@@ -17,9 +17,12 @@ THREE.Bone = function ( skin ) {
|
|
|
THREE.Bone.prototype = Object.create( THREE.Object3D.prototype );
|
|
|
THREE.Bone.prototype.constructor = THREE.Bone;
|
|
|
|
|
|
-THREE.Bone.prototype.clone = function () {
|
|
|
+THREE.Bone.prototype.copy = function ( source ) {
|
|
|
|
|
|
- var bone = new this.constructor( this.skin );
|
|
|
- return bone.copy( this );
|
|
|
+ THREE.Object3D.prototype.copy.call( this, source );
|
|
|
+
|
|
|
+ this.skin = source.skin;
|
|
|
+
|
|
|
+ return this;
|
|
|
|
|
|
};
|