|
@@ -33,6 +33,20 @@ SkinnedMesh.prototype = Object.assign( Object.create( Mesh.prototype ), {
|
|
|
|
|
|
isSkinnedMesh: true,
|
|
|
|
|
|
+ copy: function ( source ) {
|
|
|
+
|
|
|
+ Mesh.prototype.copy.call( this, source );
|
|
|
+
|
|
|
+ this.bindMode = source.bindMode;
|
|
|
+ this.bindMatrix.copy( source.bindMatrix );
|
|
|
+ this.bindMatrixInverse.copy( source.bindMatrixInverse );
|
|
|
+
|
|
|
+ this.skeleton = source.skeleton;
|
|
|
+
|
|
|
+ return this;
|
|
|
+
|
|
|
+ },
|
|
|
+
|
|
|
bind: function ( skeleton, bindMatrix ) {
|
|
|
|
|
|
this.skeleton = skeleton;
|
|
@@ -109,12 +123,6 @@ SkinnedMesh.prototype = Object.assign( Object.create( Mesh.prototype ), {
|
|
|
|
|
|
},
|
|
|
|
|
|
- clone: function () {
|
|
|
-
|
|
|
- return new this.constructor( this.geometry, this.material ).copy( this );
|
|
|
-
|
|
|
- },
|
|
|
-
|
|
|
boneTransform: ( function () {
|
|
|
|
|
|
const basePosition = new Vector3();
|