mirror of https://github.com/axmolengine/axmol.git
fixed getParentToNodeTransform. it returned a wrong transform if _transformDirty was true.
This commit is contained in:
parent
3ebf8ef22b
commit
ba0beaffdc
|
@ -1829,7 +1829,7 @@ const Mat4& Node::getParentToNodeTransform() const
|
|||
{
|
||||
if ( _inverseDirty )
|
||||
{
|
||||
_inverse = _transform.getInversed();
|
||||
_inverse = getNodeToParentTransform().getInversed();
|
||||
_inverseDirty = false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue