Merge pull request #5604 from dabingnn/develop_fix_node_transform_bug

Develop fix node transform bug
This commit is contained in:
minggo 2014-03-07 10:30:40 +08:00
commit 2f7f442c6c
1 changed files with 5 additions and 1 deletions

View File

@ -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