mirror of https://github.com/axmolengine/axmol.git
Merge pull request #7186 from billtt/v3_fixNodeSetScale
fix a bug that Node::setScale(float) may not work properly
This commit is contained in:
commit
6a3d3aa4a4
|
@ -374,7 +374,7 @@ float Node::getScale(void) const
|
|||
/// scale setter
|
||||
void Node::setScale(float scale)
|
||||
{
|
||||
if (_scaleX == scale)
|
||||
if (_scaleX == scale && _scaleY == scale && _scaleZ == scale)
|
||||
return;
|
||||
|
||||
#if CC_USE_PHYSICS
|
||||
|
|
Loading…
Reference in New Issue