mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
[ts] Allow setSkin to accept null to unset skins.
This commit is contained in:
parent
c681ab4ef4
commit
609c07c365
@ -510,7 +510,7 @@ export class Skeleton {
|
|||||||
* {@link #setSlotsToSetupPose()}. Also, often {@link AnimationState#apply()} is called before the next time the
|
* {@link #setSlotsToSetupPose()}. Also, often {@link AnimationState#apply()} is called before the next time the
|
||||||
* skeleton is rendered to allow any attachment keys in the current animation(s) to hide or show attachments from the new skin.
|
* skeleton is rendered to allow any attachment keys in the current animation(s) to hide or show attachments from the new skin.
|
||||||
* @param newSkin May be null. */
|
* @param newSkin May be null. */
|
||||||
setSkin (newSkin: Skin) {
|
setSkin (newSkin: Skin | null) {
|
||||||
if (newSkin == this.skin) return;
|
if (newSkin == this.skin) return;
|
||||||
if (newSkin) {
|
if (newSkin) {
|
||||||
if (this.skin)
|
if (this.skin)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user