forked from bartvdbraak/blender
BGE bug fix: set parent actuator change the orientation of object
This commit is contained in:
parent
f0a41d9d97
commit
e7a106625c
@ -229,7 +229,7 @@ void KX_GameObject::SetParent(KX_Scene *scene, KX_GameObject* obj)
|
|||||||
|
|
||||||
NodeSetLocalScale(scale1);
|
NodeSetLocalScale(scale1);
|
||||||
NodeSetLocalPosition(MT_Point3(newpos[0],newpos[1],newpos[2]));
|
NodeSetLocalPosition(MT_Point3(newpos[0],newpos[1],newpos[2]));
|
||||||
NodeSetLocalOrientation(NodeGetWorldOrientation()*invori);
|
NodeSetLocalOrientation(invori*NodeGetWorldOrientation());
|
||||||
NodeUpdateGS(0.f,true);
|
NodeUpdateGS(0.f,true);
|
||||||
// object will now be a child, it must be removed from the parent list
|
// object will now be a child, it must be removed from the parent list
|
||||||
CListValue* rootlist = scene->GetRootParentList();
|
CListValue* rootlist = scene->GetRootParentList();
|
||||||
|
Loading…
Reference in New Issue
Block a user