fixed getParentToNodeTransform. it returned a wrong transform if _transformDirty was true.

This commit is contained in:
Takao Kato 2015-01-09 09:58:09 +08:00
parent 3ebf8ef22b
commit ba0beaffdc
1 changed files with 1 additions and 1 deletions

View File

@ -1829,7 +1829,7 @@ const Mat4& Node::getParentToNodeTransform() const
{
if ( _inverseDirty )
{
_inverse = _transform.getInversed();
_inverse = getNodeToParentTransform().getInversed();
_inverseDirty = false;
}