mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 08:42:43 +08:00
cancel button executeineditor (#4854)
This commit is contained in:
@@ -121,7 +121,6 @@ enum State {
|
||||
@ccclass('cc.ButtonComponent')
|
||||
@executionOrder(110)
|
||||
@menu('UI/Button')
|
||||
@executeInEditMode
|
||||
export class ButtonComponent extends Component {
|
||||
|
||||
/**
|
||||
@@ -538,7 +537,7 @@ export class ButtonComponent extends Component {
|
||||
}
|
||||
|
||||
if (this._transition === Transition.COLOR) {
|
||||
Color.lerp(renderComp._color, this._fromColor, this._toColor, ratio);
|
||||
Color.lerp(renderComp.color, this._fromColor, this._toColor, ratio);
|
||||
} else if (this.transition === Transition.SCALE) {
|
||||
target.getScale(this._targetScale);
|
||||
this._targetScale.x = lerp(this._fromScale.x, this._toScale.x, ratio);
|
||||
|
||||
Reference in New Issue
Block a user