mirror of https://github.com/axmolengine/axmol.git
Merge pull request #5604 from dabingnn/develop_fix_node_transform_bug
Develop fix node transform bug
This commit is contained in:
commit
2f7f442c6c
|
@ -506,7 +506,11 @@ bool Node::isVisible() const
|
|||
/// isVisible setter
|
||||
void Node::setVisible(bool var)
|
||||
{
|
||||
_visible = var;
|
||||
if(var != _visible)
|
||||
{
|
||||
_visible = var;
|
||||
if(_visible) _transformUpdated = _transformDirty = _inverseDirty = true;
|
||||
}
|
||||
}
|
||||
|
||||
const Point& Node::getAnchorPointInPoints() const
|
||||
|
|
Loading…
Reference in New Issue