Merge pull request #4117 from michaelcontento/add-missing-setscale-to-sprite

[ci skip]add Sprite::setScale(float, float)
This commit is contained in:
minggo 2013-11-07 18:54:04 -08:00
commit d2bb1c72cc
2 changed files with 7 additions and 0 deletions

View File

@ -840,6 +840,12 @@ void Sprite::setScale(float fScale)
SET_DIRTY_RECURSIVELY();
}
void Sprite::setScale(float scaleX, float scaleY)
{
Node::setScale(scaleX, scaleY);
SET_DIRTY_RECURSIVELY();
}
void Sprite::setVertexZ(float fVertexZ)
{
Node::setVertexZ(fVertexZ);

View File

@ -494,6 +494,7 @@ public:
/// @name Functions inherited from Node
virtual void setScaleX(float scaleX) override;
virtual void setScaleY(float scaleY) override;
virtual void setScale(float scaleX, float scaleY) override;
/**
* @js NA
* @lua NA