[Bf-blender-cvs] [de04c92] master: Fix to get iTaSC working again in the BGE

Benoit Bolsee noreply at git.blender.org
Sat Aug 9 16:45:32 CEST 2014


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));
 }




More information about the Bf-blender-cvs mailing list