diff options
author | Joshua Leung <aligorith@gmail.com> | 2007-08-14 15:16:11 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2007-08-14 15:16:11 +0400 |
commit | 35bc7079e32b9c28571b9fb1ee5081cd0376927e (patch) | |
tree | 8f3e0dd28abbf867b8fecd335fa4594aa095309d /source/blender/blenkernel/intern | |
parent | 27806f37d527f981a2550ea3378a8f0dbbcb542d (diff) |
Whitespace commit in constraints code.
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/constraint.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/constraint.c b/source/blender/blenkernel/intern/constraint.c index 6cbe454b79c..08b8239513b 100644 --- a/source/blender/blenkernel/intern/constraint.c +++ b/source/blender/blenkernel/intern/constraint.c @@ -772,8 +772,9 @@ bConstraintChannel *verify_constraint_channel (ListBase *list, const char *name) { bConstraintChannel *chan; - chan= get_constraint_channel (list, name); - if(chan==NULL) { + chan= get_constraint_channel(list, name); + + if(chan == NULL) { chan= MEM_callocN(sizeof(bConstraintChannel), "new constraint chan"); BLI_addtail(list, chan); strcpy(chan->name, name); @@ -887,9 +888,12 @@ void do_constraint_channels (ListBase *conbase, ListBase *chanbase, float ctime) /* for each Constraint, calculate its Influence from the corresponding ConstraintChannel */ for (con=conbase->first; con; con=con->next) { + chan = get_constraint_channel(chanbase, con->name); + if (chan && chan->ipo) { calc_ipo(chan->ipo, ctime); + for (icu=chan->ipo->curve.first; icu; icu=icu->next) { switch (icu->adrcode) { case CO_ENFORCE: |