diff options
author | Joshua Leung <aligorith@gmail.com> | 2009-11-08 09:43:08 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2009-11-08 09:43:08 +0300 |
commit | 10900f1de816a22a616d9626523d181fb982ec0a (patch) | |
tree | c556ad10debfdfbcef096989e80c7d1267ad5bae /source/blender/editors/animation/drivers.c | |
parent | fac2ca1c7ca26b9e7019d5c3367b1cb758ba8ca4 (diff) |
Graph Editor Drawing Tweaks:
* When there is only a single keyframe for a F-Curve, the handles aren't shown anymore. This looks nicer than the fat orange blobs that appeared
* Tweaked the management of GL_BLEND when drawing animation channels in the Graph Editor in an attempt to fix some of the missing text drawn issues.
* Converted the properties panel to use layout engine + added color selectors
Diffstat (limited to 'source/blender/editors/animation/drivers.c')
-rw-r--r-- | source/blender/editors/animation/drivers.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/editors/animation/drivers.c b/source/blender/editors/animation/drivers.c index c08bf443851..13f38dae6ea 100644 --- a/source/blender/editors/animation/drivers.c +++ b/source/blender/editors/animation/drivers.c @@ -148,6 +148,7 @@ short ANIM_add_driver (ID *id, const char rna_path[], int array_index, short fla PropertyRNA *prop; FCurve *fcu; int array_index_max = array_index+1; + int done = 0; /* validate pointer first - exit if failure */ RNA_id_pointer_create(id, &id_ptr); @@ -198,10 +199,13 @@ short ANIM_add_driver (ID *id, const char rna_path[], int array_index, short fla } } } + + /* set the done status */ + done += (fcu != NULL); } /* done */ - return (fcu != NULL); + return done; } /* Main Driver Management API calls: |