From abb3f8c80be57ea263f7067a771ea0b96aee57e3 Mon Sep 17 00:00:00 2001 From: Mitchell Stokes Date: Wed, 20 Jul 2011 06:20:49 +0000 Subject: [PATCH] BGE Animations: Fixing a crash with "IPO" animations on an object with modifiers. --- source/gameengine/Ketsji/BL_Action.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/gameengine/Ketsji/BL_Action.cpp b/source/gameengine/Ketsji/BL_Action.cpp index 9a29f7d4472..6fe989296fd 100644 --- a/source/gameengine/Ketsji/BL_Action.cpp +++ b/source/gameengine/Ketsji/BL_Action.cpp @@ -155,7 +155,7 @@ bool BL_Action::Play(const char* name, BL_DeformableGameObject *obj = (BL_DeformableGameObject*)m_obj; BL_ShapeDeformer *shape_deformer = dynamic_cast(obj->GetDeformer()); - if (shape_deformer) + if (shape_deformer && shape_deformer->GetKey()) { obj->GetShape(m_blendinshape); @@ -363,7 +363,7 @@ void BL_Action::Update(float curtime) BL_ShapeDeformer *shape_deformer = dynamic_cast(obj->GetDeformer()); // Handle shape actions if we have any - if (shape_deformer) + if (shape_deformer && shape_deformer->GetKey()) { Key *key = shape_deformer->GetKey();