Tag object with object solver constraint to recalc when changing value of
authorSergey Sharybin <sergey.vfx@gmail.com>
Sat, 31 Dec 2011 08:26:59 +0000 (08:26 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Sat, 31 Dec 2011 08:26:59 +0000 (08:26 +0000)
tracking object scale.

source/blender/blenkernel/intern/depsgraph.c

index e56a8034b2192bd3fcfc086289c69ccd3d68cf8d..3cb2f8ce7380f2220fd7f02b5244e29ba1d24084 100644 (file)
@@ -2564,7 +2564,9 @@ static void dag_id_flush_update(Scene *sce, ID *id)
                                bConstraint *con;
                                for (con = obt->constraints.first; con; con=con->next) {
                                        bConstraintTypeInfo *cti= constraint_get_typeinfo(con);
-                                       if(ELEM(cti->type, CONSTRAINT_TYPE_FOLLOWTRACK, CONSTRAINT_TYPE_CAMERASOLVER)) {
+                                       if(ELEM3(cti->type, CONSTRAINT_TYPE_FOLLOWTRACK, CONSTRAINT_TYPE_CAMERASOLVER,
+                                                CONSTRAINT_TYPE_OBJECTSOLVER))
+                                       {
                                                obt->recalc |= OB_RECALC_OB;
                                                break;
                                        }