cancel button executeineditor (#4854)

This commit is contained in:
JoneLau
2019-07-10 16:56:53 +08:00
committed by Weiliang Wang
parent 0cdd004eb1
commit 255141f3a6
+1 -2
View File
@@ -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);