fixed toggle

This commit is contained in:
yinkaile
2018-01-17 16:31:02 +08:00
parent 32323f203d
commit 11d279085b
+2 -2
View File
@@ -129,11 +129,11 @@ var Toggle = cc.Class({
this._super();
if (this.checkMark) {
this.checkMark._sgNode.setState(0);
this.checkMark.setState(0);
}
if (this.enableAutoGrayEffect) {
if (this.checkMark && !this.interactable) {
this.checkMark._sgNode.setState(1);
this.checkMark.setState(1);
}
}
},