Skip to content

Commit

Permalink
remove button wrong sprite set
Browse files Browse the repository at this point in the history
  • Loading branch information
LinYunMo committed Aug 14, 2023
1 parent b76a405 commit 62a8373
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions cocos/ui/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -583,11 +583,6 @@ export class Button extends Component {
this.target = this.node;
}

const sprite = this.node.getComponent(Sprite);
if (sprite) {
this._normalSprite = sprite.spriteFrame;
}

this._applyTarget();
this._resetState();
}
Expand Down

0 comments on commit 62a8373

Please sign in to comment.