Commit: de04c921b056ca03129ae79838bebc151139ea84
Author: Benoit Bolsee
Date:   Sat Aug 9 15:45:24 2014 +0200
Branches: master
https://developer.blender.org/rBde04c921b056ca03129ae79838bebc151139ea84

Fix to get iTaSC working again in the BGE

===================================================================

M       source/gameengine/Converter/BL_ArmatureObject.cpp

===================================================================

diff --git a/source/gameengine/Converter/BL_ArmatureObject.cpp 
b/source/gameengine/Converter/BL_ArmatureObject.cpp
index e11bc84..8d73e59 100644
--- a/source/gameengine/Converter/BL_ArmatureObject.cpp
+++ b/source/gameengine/Converter/BL_ArmatureObject.cpp
@@ -101,7 +101,7 @@ static void game_copy_pose(bPose **dst, bPose *src, int 
copy_constraint)
        out->chanhash = NULL;
        out->agroups.first= out->agroups.last= NULL;
        out->ikdata = NULL;
-       out->ikparam = MEM_dupallocN(out->ikparam);
+    out->ikparam = MEM_dupallocN(src->ikparam);
        out->flag |= POSE_GAME_ENGINE;
        BLI_duplicatelist(&out->chanbase, &src->chanbase);
 
@@ -231,6 +231,8 @@ BL_ArmatureObject::BL_ArmatureObject(
        m_objArma = BKE_object_copy(armature);
        m_objArma->data = BKE_armature_copy((bArmature *)armature->data);
        m_pose = m_objArma->pose;
+    // need this to get iTaSC working ok in the BGE
+    m_pose->flag |= POSE_GAME_ENGINE;
        memcpy(m_obmat, m_objArma->obmat, sizeof(m_obmat));
 }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to