Bugfix: drivers on constraint properties could get set to invalid when

transforming, due to the evaluation of the object transform without
constraints, and the driver not finding the property.

Constraints are now disabled in a way that should avoid this problem
This commit is contained in:
2010-01-12 19:51:26 +00:00
parent ff353b4939
commit 63e80e271d
3 changed files with 6 additions and 10 deletions

View File

@@ -4256,18 +4256,13 @@ static void ObjectToTransData(bContext *C, TransInfo *t, TransData *td, Object *
track= ob->track;
ob->track= NULL;
if (constinv == 0) {
fakecons.first = ob->constraints.first;
fakecons.last = ob->constraints.last;
ob->constraints.first = ob->constraints.last = NULL;
}
if (constinv == 0)
ob->transflag |= OB_NO_CONSTRAINTS; /* where_is_object_time checks this */
where_is_object(t->scene, ob);
if (constinv == 0) {
ob->constraints.first = fakecons.first;
ob->constraints.last = fakecons.last;
}
if (constinv == 0)
ob->transflag &= ~OB_NO_CONSTRAINTS;
ob->track= track;
}