fix a bug that Node::setScale(float) may not work properly if (_scaleX != _scaleY || _scaleX != _scaleZ)

This commit is contained in:
Zhou Yuntao 2014-06-24 10:05:52 +08:00
parent fc7b42c0e5
commit 50a1449af9
1 changed files with 1 additions and 1 deletions

View File

@ -347,7 +347,7 @@ float Node::getScale(void) const
/// scale setter
void Node::setScale(float scale)
{
if (_scaleX == scale)
if (_scaleX == scale && _scaleY == scale && _scaleZ == scale)
return;
_scaleX = _scaleY = _scaleZ = scale;