mirror of https://github.com/axmolengine/axmol.git
Merge pull request #9887 from takaokato/bugfix
fixed getParentToNodeTransform. it returned a wrong transform if _transf...
This commit is contained in:
commit
1ec1d7a61c
|
@ -1829,7 +1829,7 @@ const Mat4& Node::getParentToNodeTransform() const
|
|||
{
|
||||
if ( _inverseDirty )
|
||||
{
|
||||
_inverse = _transform.getInversed();
|
||||
_inverse = getNodeToParentTransform().getInversed();
|
||||
_inverseDirty = false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue