Skeleton: Add dispose().
@@ -21,4 +21,6 @@ export class Skeleton {
clone(): Skeleton;
getBoneByName( name: string ): undefined | Bone;
+ dispose() :void ;
+
}
@@ -168,6 +168,18 @@ Object.assign( Skeleton.prototype, {
return undefined;
+ },
+ dispose: function ( ) {
+ if ( this.boneTexture ) {
+ this.boneTexture.dispose();
+ this.boneTexture = undefined;
+ }
} );