Fix T40113: Skinned meshes with non-animated shape keys crashes the BGE.
authorMitchell Stokes <mogurijin@gmail.com>
Fri, 9 May 2014 23:05:23 +0000 (16:05 -0700)
committerMitchell Stokes <mogurijin@gmail.com>
Fri, 9 May 2014 23:05:23 +0000 (16:05 -0700)
source/gameengine/Converter/BL_ShapeDeformer.cpp

index b9b2732276e970297ef5cdb1a7c01d0f1122177e..5e31dabfab1f7855dbc0aadba330156291a5fa9c 100644 (file)
@@ -129,7 +129,7 @@ bool BL_ShapeDeformer::LoadShapeDrivers(KX_GameObject* parent)
        }
 
        // Fix drivers since BL_ArmatureObject makes copies
-       if (parent->GetGameObjectType() == SCA_IObject::OBJ_ARMATURE) {
+       if (parent->GetGameObjectType() == SCA_IObject::OBJ_ARMATURE && GetKey()->adt) {
                BL_ArmatureObject *arma = (BL_ArmatureObject*)parent;
                FCurve *fcu;