diff options
author | Ton Roosendaal <ton@blender.org> | 2006-07-04 14:19:26 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-07-04 14:19:26 +0400 |
commit | 0458c50f63da046d03819450f82048b3ad586e6c (patch) | |
tree | 4e43ca9cfef33a4d31c08e21950f691dca3e1c18 /source/blender/blenkernel/intern/ipo.c | |
parent | 518fef7f2965a01fc033a78bd4d6e592158160f0 (diff) |
Bug #4597
More Driver fixing...
Commit of over week ago to make drivers update correctly on cyclic
situations, forgot to fix another driver call... which then got called
always with 'current frame' set to zero.
Error only happened with animated (Ipos) Object-Object driver relations.
Also in this commit: when loading file, lattices with hooks were not
updated correctly.
Diffstat (limited to 'source/blender/blenkernel/intern/ipo.c')
-rw-r--r-- | source/blender/blenkernel/intern/ipo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/ipo.c b/source/blender/blenkernel/intern/ipo.c index 357f979ca2f..311ffb28019 100644 --- a/source/blender/blenkernel/intern/ipo.c +++ b/source/blender/blenkernel/intern/ipo.c @@ -1982,7 +1982,7 @@ void do_ob_ipo(Object *ob) } } -void do_ob_ipodrivers(Object *ob, Ipo *ipo) +void do_ob_ipodrivers(Object *ob, Ipo *ipo, float ctime) { IpoCurve *icu; void *poin; @@ -1990,7 +1990,7 @@ void do_ob_ipodrivers(Object *ob, Ipo *ipo) for(icu= ipo->curve.first; icu; icu= icu->next) { if(icu->driver) { - icu->curval= eval_icu(icu, 0.0f); + icu->curval= eval_icu(icu, ctime); poin= get_ipo_poin((ID *)ob, icu, &type); if(poin) write_ipo_poin(poin, type, icu->curval); } |