Browse Source

Remove `skin` property from `Bone` (#9951)

Jay Weeks 8 years ago
parent
commit
d451c961a3
2 changed files with 2 additions and 6 deletions
  1. 1 5
      src/objects/Bone.js
  2. 1 1
      src/objects/SkinnedMesh.js

+ 1 - 5
src/objects/Bone.js

@@ -6,14 +6,12 @@ import { Object3D } from '../core/Object3D';
  * @author ikerr / http://verold.com
  * @author ikerr / http://verold.com
  */
  */
 
 
-function Bone( skin ) {
+function Bone() {
 
 
 	Object3D.call( this );
 	Object3D.call( this );
 
 
 	this.type = 'Bone';
 	this.type = 'Bone';
 
 
-	this.skin = skin;
-
 }
 }
 
 
 Bone.prototype = Object.assign( Object.create( Object3D.prototype ), {
 Bone.prototype = Object.assign( Object.create( Object3D.prototype ), {
@@ -26,8 +24,6 @@ Bone.prototype = Object.assign( Object.create( Object3D.prototype ), {
 
 
 		Object3D.prototype.copy.call( this, source );
 		Object3D.prototype.copy.call( this, source );
 
 
-		this.skin = source.skin;
-
 		return this;
 		return this;
 
 
 	}
 	}

+ 1 - 1
src/objects/SkinnedMesh.js

@@ -35,7 +35,7 @@ function SkinnedMesh( geometry, material, useVertexTexture ) {
 
 
 			gbone = this.geometry.bones[ b ];
 			gbone = this.geometry.bones[ b ];
 
 
-			bone = new Bone( this );
+			bone = new Bone();
 			bones.push( bone );
 			bones.push( bone );
 
 
 			bone.name = gbone.name;
 			bone.name = gbone.name;