diff --git a/cocos/editor-support/cocostudio/ActionTimeline/CCFrame.cpp b/cocos/editor-support/cocostudio/ActionTimeline/CCFrame.cpp index daf6cd18f2..463da82deb 100644 --- a/cocos/editor-support/cocostudio/ActionTimeline/CCFrame.cpp +++ b/cocos/editor-support/cocostudio/ActionTimeline/CCFrame.cpp @@ -400,7 +400,7 @@ void PositionFrame::onEnter(Frame *nextFrame, int currentFrameIndex) void PositionFrame::onApply(float percent) { - if (nullptr != _node && _betweenX != 0 || _betweenY != 0) + if (nullptr != _node && (_betweenX != 0 || _betweenY != 0)) { Point p; p.x = _position.x + _betweenX * percent;