diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2007-10-15 14:36:30 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2007-10-15 14:36:30 +0400 |
commit | 565316909ec71c8f98b2fee150737ed2defe2902 (patch) | |
tree | 1a055b14256aad1440fdc0dc5b389c7c31d83f11 /source/blender/blenkernel/intern/object.c | |
parent | ff5fd2eb38871c23d4bcdc0ea6c646101b89546d (diff) |
Bugfix:
Object constraints with a driven influence ipo were not being evaluated
properly. The code for adding the depsgraph relation and updating without
time changes was simply missing.
Diffstat (limited to 'source/blender/blenkernel/intern/object.c')
-rw-r--r-- | source/blender/blenkernel/intern/object.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/object.c b/source/blender/blenkernel/intern/object.c index ba8d047644b..20d61456f05 100644 --- a/source/blender/blenkernel/intern/object.c +++ b/source/blender/blenkernel/intern/object.c @@ -1542,12 +1542,14 @@ void where_is_object_time(Object *ob, float ctime) else do_all_object_actions(ob); - /* do constraint ipos ..., note it needs stime */ - do_constraint_channels(&ob->constraints, &ob->constraintChannels, stime); + /* do constraint ipos ..., note it needs stime (0 = all ipos) */ + do_constraint_channels(&ob->constraints, &ob->constraintChannels, stime, 0); } else { /* but, the drivers have to be done */ if(ob->ipo) do_ob_ipodrivers(ob, ob->ipo, stime); + /* do constraint ipos ..., note it needs stime (1 = only drivers ipos) */ + do_constraint_channels(&ob->constraints, &ob->constraintChannels, stime, 1); } if(ob->parent) { |