Fix #27696: record animation in game engine not working with pre made fcurves.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 29 Nov 2011 18:37:10 +0000 (18:37 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 29 Nov 2011 18:37:10 +0000 (18:37 +0000)
source/gameengine/Converter/KX_BlenderSceneConverter.cpp

index 7699e86f19fb5221d90521d494c7035a308171dd..2f5125a63dd201395ba718b099ce0e27389190d8 100644 (file)
@@ -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();