From 6cccdf0cb2602b46e9c1e0a0a7f40853626735cf Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 27 Aug 2008 06:02:10 +0000 Subject: BGE bugfix, ipo actuator's foce option didnt check that the object was dynamic. --- source/gameengine/Ketsji/KX_IPO_SGController.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/gameengine/Ketsji') diff --git a/source/gameengine/Ketsji/KX_IPO_SGController.cpp b/source/gameengine/Ketsji/KX_IPO_SGController.cpp index d3aa924665e..6223643f75a 100644 --- a/source/gameengine/Ketsji/KX_IPO_SGController.cpp +++ b/source/gameengine/Ketsji/KX_IPO_SGController.cpp @@ -143,7 +143,7 @@ bool KX_IpoSGController::Update(double currentTime) { if (m_ipo_as_force == true) { - if (m_game_object && ob) + if (m_game_object && ob && m_game_object->GetPhysicsController()) { m_game_object->GetPhysicsController()->ApplyForce(m_ipo_local ? ob->GetWorldOrientation() * m_ipo_xform.GetPosition() : -- cgit v1.2.3