mirror of https://github.com/axmolengine/axmol.git
Merge pull request #10789 from fusijie/fix-moveto-reverse
disable MoveTo::reverse()
This commit is contained in:
commit
04393854e8
|
@ -1171,6 +1171,12 @@ void MoveTo::startWithTarget(Node *target)
|
||||||
_positionDelta = _endPosition - target->getPosition3D();
|
_positionDelta = _endPosition - target->getPosition3D();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MoveTo* MoveTo::reverse() const
|
||||||
|
{
|
||||||
|
CCASSERT(false, "reverse() not supported in MoveTo");
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// SkewTo
|
// SkewTo
|
||||||
|
|
|
@ -549,6 +549,7 @@ public:
|
||||||
// Overrides
|
// Overrides
|
||||||
//
|
//
|
||||||
virtual MoveTo* clone() const override;
|
virtual MoveTo* clone() const override;
|
||||||
|
virtual MoveTo* reverse() const override;
|
||||||
virtual void startWithTarget(Node *target) override;
|
virtual void startWithTarget(Node *target) override;
|
||||||
|
|
||||||
CC_CONSTRUCTOR_ACCESS:
|
CC_CONSTRUCTOR_ACCESS:
|
||||||
|
|
Loading…
Reference in New Issue