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 9, 2023
1 parent 0944eea commit befeaba
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions cocos/spine/skeleton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ export interface SkeletonDrawData {
}

export interface TempColor {
r:number;
g:number;
b:number;
a:number;
r: number;
g: number;
b: number;
a: number;
}

/**
Expand Down Expand Up @@ -1613,10 +1613,7 @@ export class Skeleton extends UIRenderer {
*/
public _updateColor (): void {
const a = this.node._uiProps.opacity;
if (this._tempColor.r === this._color.r &&
this._tempColor.g === this.color.g &&
this._tempColor.b === this.color.b &&
this._tempColor.a === a) {
if (this._tempColor.r === this._color.r && this._tempColor.g === this.color.g && this._tempColor.b === this.color.b && this._tempColor.a === a) {

Check warning on line 1616 in cocos/spine/skeleton.ts

View workflow job for this annotation

GitHub Actions / Run ESLint

This line has a length of 153. Maximum allowed is 150
return;
}
this.node._uiProps.colorDirty = true;
Expand Down

0 comments on commit befeaba

Please sign in to comment.