Object tracking: various fixes and improvements
[blender-staging.git] / source / blender / editors / object / object_constraint.c
index a4a33b866ff3abbd886998a3717aa69c0f6de156..fa4f50e240f8e398e088539493351f9e0c828b2f 100644 (file)
@@ -433,6 +433,12 @@ static void test_constraints (Object *owner, bPoseChannel *pchan)
                                if((data->flag&CAMERASOLVER_ACTIVECLIP)==0 && data->clip == NULL)
                                        curcon->flag |= CONSTRAINT_DISABLE;
                        }
+                       else if (curcon->type == CONSTRAINT_TYPE_OBJECTSOLVER) {
+                               bObjectSolverConstraint *data = curcon->data;
+
+                               if((data->flag&CAMERASOLVER_ACTIVECLIP)==0 && data->clip == NULL)
+                                       curcon->flag |= CONSTRAINT_DISABLE;
+                       }
                        
                        /* Check targets for constraints */
                        if (cti && cti->get_constraint_targets) {