未验证 提交 6d403a5b 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #18865 from cjsjy123/dev

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;
}
}
} );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册