[Bf-blender-cvs] [f43b74e] depsgraph_refactor: Depsgraph: imat is needed by the solvers and need to be initialized

Sergey Sharybin noreply at git.blender.org
Fri Jan 23 14:30:29 CET 2015


Commit: f43b74e90e1ba86b187d7146eb147874dc0bded9
Author: Sergey Sharybin
Date:   Fri Jan 23 18:29:07 2015 +0500
Branches: depsgraph_refactor
https://developer.blender.org/rBf43b74e90e1ba86b187d7146eb147874dc0bded9

Depsgraph: imat is needed by the solvers and need to be initialized

That used to be initialized in legacy bone_where_is and was lost at some point.

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

M	source/blender/blenkernel/intern/armature_update.c

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

diff --git a/source/blender/blenkernel/intern/armature_update.c b/source/blender/blenkernel/intern/armature_update.c
index 2f2ceb7..0dcd09f 100644
--- a/source/blender/blenkernel/intern/armature_update.c
+++ b/source/blender/blenkernel/intern/armature_update.c
@@ -573,6 +573,9 @@ void BKE_pose_eval_init(EvaluationContext *UNUSED(eval_ctx),
 	BLI_assert(ob->pose != NULL);
 	BLI_assert((ob->pose->flag & POSE_RECALC) == 0);
 
+	/* imat is needed for solvers. */
+	invert_m4_m4(ob->imat, ob->obmat);
+
 	/* 1. clear flags */
 	for (pchan = pose->chanbase.first; pchan != NULL; pchan = pchan->next) {
 		pchan->flag &= ~(POSE_DONE | POSE_CHAIN | POSE_IKTREE | POSE_IKSPLINE);




More information about the Bf-blender-cvs mailing list