Fix #27696: record animation in game engine not working with pre made fcurves.
This commit is contained in:
@@ -765,7 +765,7 @@ void KX_BlenderSceneConverter::WritePhysicsObjectToAnimationIpo(int frameNumber)
|
|||||||
{
|
{
|
||||||
KX_GameObject* gameObj = (KX_GameObject*)parentList->GetValue(g);
|
KX_GameObject* gameObj = (KX_GameObject*)parentList->GetValue(g);
|
||||||
Object* blenderObject = gameObj->GetBlenderObject();
|
Object* blenderObject = gameObj->GetBlenderObject();
|
||||||
if (blenderObject && blenderObject->parent==NULL && gameObj->GetPhysicsController() != NULL)
|
if (blenderObject && blenderObject->parent==NULL && gameObj->IsDynamic())
|
||||||
{
|
{
|
||||||
//KX_IPhysicsController* physCtrl = gameObj->GetPhysicsController();
|
//KX_IPhysicsController* physCtrl = gameObj->GetPhysicsController();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user