Skip to content

Commit

Permalink
UPBGE: Fix KX_GameObject::NodeSetGlobalOrientation.
Browse files Browse the repository at this point in the history
  • Loading branch information
panzergame committed Jun 29, 2018
1 parent abbd135 commit aef8773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/gameengine/Ketsji/KX_GameObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1240,7 +1240,7 @@ void KX_GameObject::NodeSetGlobalOrientation(const mt::mat3& rot)
{
SG_Node *parentSgNode = m_sgNode->GetParent();
if (parentSgNode) {
NodeSetLocalOrientation(parentSgNode->GetParent()->GetWorldOrientation().Inverse() * rot);
NodeSetLocalOrientation(parentSgNode->GetWorldOrientation().Inverse() * rot);
}
else {
NodeSetLocalOrientation(rot);
Expand Down

0 comments on commit aef8773

Please sign in to comment.