forked from bartvdbraak/blender
Fix T45269: Blender 2.75 crashes when I run my the game
Velocity clamping on static objects caused a crash.
This commit is contained in:
parent
e80e4c937b
commit
db8ccc18f7
@ -700,7 +700,7 @@ CcdPhysicsController::~CcdPhysicsController()
|
||||
void CcdPhysicsController::SimulationTick(float timestep)
|
||||
{
|
||||
btRigidBody *body = GetRigidBody();
|
||||
if (!body && body->isStaticObject())
|
||||
if (!body || body->isStaticObject())
|
||||
return;
|
||||
|
||||
// Clamp linear velocity
|
||||
|
Loading…
Reference in New Issue
Block a user