forked from bartvdbraak/blender
Fix T42919 & T42218: BGE: Python-driven armature animation got buggy
Due to changes in the way animation updates were handled, BL_ArmatureObjects were no longer registering to KX_Scene as animated. Moguri says: It might have been relying on the deformer update which moved rom being called on every object in the render step. Now armature deformers are only updated if they need to be. Fix T42919 & Fix T42218
This commit is contained in:
parent
a83b2d3fd9
commit
bf157ce927
@ -234,6 +234,9 @@ BL_ArmatureObject::BL_ArmatureObject(
|
|||||||
// need this to get iTaSC working ok in the BGE
|
// need this to get iTaSC working ok in the BGE
|
||||||
m_pose->flag |= POSE_GAME_ENGINE;
|
m_pose->flag |= POSE_GAME_ENGINE;
|
||||||
memcpy(m_obmat, m_objArma->obmat, sizeof(m_obmat));
|
memcpy(m_obmat, m_objArma->obmat, sizeof(m_obmat));
|
||||||
|
|
||||||
|
// The side-effect of this method registers this object as "animatable" with the KX_Scene.
|
||||||
|
GetActionManager();
|
||||||
}
|
}
|
||||||
|
|
||||||
BL_ArmatureObject::~BL_ArmatureObject()
|
BL_ArmatureObject::~BL_ArmatureObject()
|
||||||
|
Loading…
Reference in New Issue
Block a user