diff --git a/cocos/editor-support/cocostudio/TriggerObj.cpp b/cocos/editor-support/cocostudio/TriggerObj.cpp index 0377f91722..9ced8023ab 100755 --- a/cocos/editor-support/cocostudio/TriggerObj.cpp +++ b/cocos/editor-support/cocostudio/TriggerObj.cpp @@ -115,11 +115,11 @@ bool TriggerObj::detect() return true; } - bool ret = true; + bool ret = false; for (const auto& con : _cons) { - ret = ret && con->detect(); + ret = ret || con->detect(); } return ret;