mirror of https://github.com/axmolengine/axmol.git
fix a bug that Node::setScale(float) may not work properly if (_scaleX != _scaleY || _scaleX != _scaleZ)
This commit is contained in:
parent
fc7b42c0e5
commit
50a1449af9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue