Skip to content

Commit

Permalink
fix code formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
Canvasfull committed Oct 12, 2023
1 parent 2760925 commit 9f827b0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cocos/spine/skeleton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,9 @@ export class Skeleton extends UIRenderer {
}
this._updateCache(dt);
} else {
if (EDITOR_NOT_IN_PREVIEW) this._instance.updateAnimation(dt);
if (EDITOR_NOT_IN_PREVIEW) {
this._instance.updateAnimation(dt);
}
}
}

Expand Down Expand Up @@ -1616,6 +1618,7 @@ export class Skeleton extends UIRenderer {
*/
public _updateColor (): void {
const a = this.node._uiProps.opacity;
// eslint-disable-next-line max-len
if (this._tempColor.r === this._color.r && this._tempColor.g === this.color.g && this._tempColor.b === this.color.b && this._tempColor.a === a) {
return;
}
Expand Down

0 comments on commit 9f827b0

Please sign in to comment.