diff options
author | Campbell Barton <ideasman42@gmail.com> | 2006-08-04 18:08:21 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2006-08-04 18:08:21 +0400 |
commit | a8461d2c408ebc4234e898c18f0b64a667fb7cc6 (patch) | |
tree | 7e105d044ffb852c229928396cf895154871f528 /source/blender/src/editipo_mods.c | |
parent | 0c748032a6ce1c92ef4dd99f65ddcdba1bf7b9de (diff) |
DNA_ipo_types.h comments only
other are changes so calchandles_ipocurve only calc handels on a bezier line.
This makes bvh import faster but should also speed up internal IPO operations.
Diffstat (limited to 'source/blender/src/editipo_mods.c')
-rw-r--r-- | source/blender/src/editipo_mods.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/src/editipo_mods.c b/source/blender/src/editipo_mods.c index 22bd0d55303..39a05573145 100644 --- a/source/blender/src/editipo_mods.c +++ b/source/blender/src/editipo_mods.c @@ -651,7 +651,13 @@ static void set_ipocurve_linear(struct IpoCurve *icu) { static void set_ipocurve_bezier(struct IpoCurve *icu) { /* Sets the type of the IPO curve to bezier */ + + /* dont regenerate hendels for bezier ipo curves */ + if (icu->ipo==IPO_BEZ) return; + + /* curve handels aren't generated for non bezier curve types */ icu->ipo= IPO_BEZ; + calchandles_ipocurve(icu); } |