Merge of itasc branch. Project files, scons and cmake should be working. Makefile...
[blender.git] / source / gameengine / Converter / BL_BlenderDataConversion.cpp
index 2308207..8feae48 100644 (file)
@@ -2501,6 +2501,14 @@ void BL_ConvertBlenderObjects(struct Main* maggie,
                        gameobj->GetDeformer()->UpdateBuckets();
        }
 
+       // Set up armature constraints
+       for (i=0;i<sumolist->GetCount();++i)
+       {
+               KX_GameObject* gameobj = (KX_GameObject*) sumolist->GetValue(i);
+               if (gameobj->GetGameObjectType() == SCA_IObject::OBJ_ARMATURE)
+                       ((BL_ArmatureObject*)gameobj)->LoadConstraints(converter);
+       }
+
        bool processCompoundChildren = false;
 
        // create physics information