Skip to content

Commit

Permalink
Remove skin property from Bone (#9951)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpweeks authored and mrdoob committed Oct 27, 2016
1 parent a1f0a5c commit d451c96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/objects/Bone.js
Expand Up @@ -6,14 +6,12 @@ import { Object3D } from '../core/Object3D';
* @author ikerr / http://verold.com
*/

function Bone( skin ) {
function Bone() {

Object3D.call( this );

this.type = 'Bone';

this.skin = skin;

}

Bone.prototype = Object.assign( Object.create( Object3D.prototype ), {
Expand All @@ -26,8 +24,6 @@ Bone.prototype = Object.assign( Object.create( Object3D.prototype ), {

Object3D.prototype.copy.call( this, source );

this.skin = source.skin;

return this;

}
Expand Down
2 changes: 1 addition & 1 deletion src/objects/SkinnedMesh.js
Expand Up @@ -35,7 +35,7 @@ function SkinnedMesh( geometry, material, useVertexTexture ) {

gbone = this.geometry.bones[ b ];

bone = new Bone( this );
bone = new Bone();
bones.push( bone );

bone.name = gbone.name;
Expand Down

0 comments on commit d451c96

Please sign in to comment.