diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-01-12 22:51:26 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-01-12 22:51:26 +0300 |
commit | 63e80e271dd3f9f79fe3a85c10253ee6eea2ba4e (patch) | |
tree | 8ab6f8d71008f06470b1310da744a004e6ce324a /source/blender/editors | |
parent | ff353b49395c81305af5cec9ce4d9354e50d4cf7 (diff) |
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
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/transform/transform_conversions.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c index 49e7f040390..3d677d0789d 100644 --- a/source/blender/editors/transform/transform_conversions.c +++ b/source/blender/editors/transform/transform_conversions.c @@ -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; } |