Depsgraph: Fix rest pose still using bone constraints
authorSergey Sharybin <sergey.vfx@gmail.com>
Wed, 18 May 2016 09:38:52 +0000 (11:38 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 18 May 2016 09:38:52 +0000 (11:38 +0200)
source/blender/blenkernel/intern/armature_update.c

index 34d9962139c9e374cc07d322e24931b14e451876..826bb12a91251aeb47bc1c79e1a1b9bc77b06c22 100644 (file)
@@ -633,7 +633,11 @@ void BKE_pose_constraints_evaluate(EvaluationContext *UNUSED(eval_ctx),
 {
        Scene *scene = G.main->scene.first;
        DEBUG_PRINT("%s on %s pchan %s\n", __func__, ob->id.name, pchan->name);
-       if (pchan->flag & POSE_IKTREE || pchan->flag & POSE_IKSPLINE) {
+       bArmature *arm = (bArmature *)ob->data;
+       if (arm->flag & ARM_RESTPOS) {
+               return;
+       }
+       else if (pchan->flag & POSE_IKTREE || pchan->flag & POSE_IKSPLINE) {
                /* IK are being solved separately/ */
        }
        else {