diff --git a/cocos/ui/UIWidget.cpp b/cocos/ui/UIWidget.cpp index 86bd7c5387..725d9b1ab4 100644 --- a/cocos/ui/UIWidget.cpp +++ b/cocos/ui/UIWidget.cpp @@ -587,10 +587,6 @@ bool Widget::isHighlighted() const void Widget::setHighlighted(bool hilight) { - if (hilight == _highlight) - { - return; - } _highlight = hilight; if (_bright) {