diff options
author | Joshua Leung <aligorith@gmail.com> | 2010-05-06 15:28:46 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2010-05-06 15:28:46 +0400 |
commit | 1de451ff2d3f03e1a868e9dbbfea81ed578a5c4b (patch) | |
tree | 89abd6ac77431c22adcf6013daa5266e3d3d694a | |
parent | 52517570f0e5d225143eae7a23c8db8b08de12e6 (diff) |
Datablocks Viewer Bugfix:
Adding Drivers and/or KeyingSet paths from the Datablocks Viewer for array elements was not working.
-rw-r--r-- | source/blender/editors/space_outliner/outliner.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_outliner/outliner.c b/source/blender/editors/space_outliner/outliner.c index 7d013ef940d..d4283b7b6d3 100644 --- a/source/blender/editors/space_outliner/outliner.c +++ b/source/blender/editors/space_outliner/outliner.c @@ -3854,7 +3854,7 @@ static void do_outliner_drivers_editop(SpaceOops *soops, ListBase *tree, short m short groupmode= KSP_GROUP_KSNAME; /* check if RNA-property described by this selected element is an animateable prop */ - if ((tselem->type == TSE_RNA_PROPERTY) && RNA_property_animateable(&te->rnaptr, te->directdata)) { + if (ELEM(tselem->type, TSE_RNA_PROPERTY, TSE_RNA_ARRAY_ELEM) && RNA_property_animateable(&te->rnaptr, te->directdata)) { /* get id + path + index info from the selected element */ tree_element_to_path(soops, te, tselem, &id, &path, &array_index, &flag, &groupmode); @@ -3862,7 +3862,7 @@ static void do_outliner_drivers_editop(SpaceOops *soops, ListBase *tree, short m /* only if ID and path were set, should we perform any actions */ if (id && path) { - int arraylen; + int arraylen = 1; /* array checks */ if (flag & KSP_FLAG_WHOLE_ARRAY) { |