Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2009-11-08 09:43:08 +0300
committerJoshua Leung <aligorith@gmail.com>2009-11-08 09:43:08 +0300
commit10900f1de816a22a616d9626523d181fb982ec0a (patch)
treec556ad10debfdfbcef096989e80c7d1267ad5bae /source/blender/editors/animation/drivers.c
parentfac2ca1c7ca26b9e7019d5c3367b1cb758ba8ca4 (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.c6
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: