Tag object with object solver constraint to recalc when changing value of

tracking object scale.
This commit is contained in:
2011-12-31 08:26:59 +00:00
parent 70d13da457
commit 1ad83b4cba

View File

@@ -2564,7 +2564,9 @@ static void dag_id_flush_update(Scene *sce, ID *id)
bConstraint *con; bConstraint *con;
for (con = obt->constraints.first; con; con=con->next) { for (con = obt->constraints.first; con; con=con->next) {
bConstraintTypeInfo *cti= constraint_get_typeinfo(con); 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; obt->recalc |= OB_RECALC_OB;
break; break;
} }