Commit: 41a682902198d352704ffe103346fc26a3a8cfa5
Author: Sergey Sharybin
Date:   Wed May 18 11:38:52 2016 +0200
Branches: master
https://developer.blender.org/rB41a682902198d352704ffe103346fc26a3a8cfa5

Depsgraph: Fix rest pose still using bone constraints

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

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 34d9962..826bb12 100644
--- a/source/blender/blenkernel/intern/armature_update.c
+++ b/source/blender/blenkernel/intern/armature_update.c
@@ -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 {

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

Reply via email to