Fix #27696: record animation in game engine not working with pre made fcurves.

This commit is contained in:
Brecht Van Lommel 2011-11-29 18:37:10 +00:00
parent 1ec4ceac7e
commit f426a74c65

@ -765,7 +765,7 @@ void KX_BlenderSceneConverter::WritePhysicsObjectToAnimationIpo(int frameNumber)
{
KX_GameObject* gameObj = (KX_GameObject*)parentList->GetValue(g);
Object* blenderObject = gameObj->GetBlenderObject();
if (blenderObject && blenderObject->parent==NULL && gameObj->GetPhysicsController() != NULL)
if (blenderObject && blenderObject->parent==NULL && gameObj->IsDynamic())
{
//KX_IPhysicsController* physCtrl = gameObj->GetPhysicsController();