From 0b910aa7c4ebdab7998e7e7bb106cd9cef66545e Mon Sep 17 00:00:00 2001 From: Canvas Date: Wed, 19 Jul 2023 12:38:12 +0800 Subject: [PATCH] fix setDebugMode on JSB mode. (#15769) --- cocos/spine/skeleton.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cocos/spine/skeleton.ts b/cocos/spine/skeleton.ts index c64122bc5b..190beae246 100644 --- a/cocos/spine/skeleton.ts +++ b/cocos/spine/skeleton.ts @@ -1467,7 +1467,7 @@ export class Skeleton extends UIRenderer { this._debugRenderer.node.destroy(); this._debugRenderer = null; if (!this.isAnimationCached()) { - this._instance.setDebugMode(false); + if (!JSB) this._instance.setDebugMode(false); } } } @@ -1494,7 +1494,6 @@ export class Skeleton extends UIRenderer { * @engineInternal */ public _updateColor (): void { - //if(EDITOR_NOT_IN_PREVIEW) cce.Node.emit('change-node', this.node); this.node._uiProps.colorDirty = true; const r = this._color.r / 255.0; const g = this._color.g / 255.0;