Merge pull request #10789 from fusijie/fix-moveto-reverse

disable MoveTo::reverse()
This commit is contained in:
minggo 2015-03-11 10:39:45 +08:00
commit 04393854e8
2 changed files with 7 additions and 0 deletions

View File

@ -1171,6 +1171,12 @@ void MoveTo::startWithTarget(Node *target)
_positionDelta = _endPosition - target->getPosition3D();
}
MoveTo* MoveTo::reverse() const
{
CCASSERT(false, "reverse() not supported in MoveTo");
return nullptr;
}
//
// SkewTo

View File

@ -549,6 +549,7 @@ public:
// Overrides
//
virtual MoveTo* clone() const override;
virtual MoveTo* reverse() const override;
virtual void startWithTarget(Node *target) override;
CC_CONSTRUCTOR_ACCESS: