diff options
author | Joshua Leung <aligorith@gmail.com> | 2009-01-27 08:04:23 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2009-01-27 08:04:23 +0300 |
commit | 83ea5824787145f69c7346da3df91bcc841b5981 (patch) | |
tree | 453acd133f7b63a51f64c64369c15e126d5ac984 /source/blender/blenkernel/intern/anim_sys.c | |
parent | 6e6bd16bf194dc7c92e44c87b049966ecfdfa490 (diff) |
Graph Editor - Selection Tools
* Mouse-Select and DeSelect All work again
* Added access to constraint 'influence' value
Diffstat (limited to 'source/blender/blenkernel/intern/anim_sys.c')
-rw-r--r-- | source/blender/blenkernel/intern/anim_sys.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/anim_sys.c b/source/blender/blenkernel/intern/anim_sys.c index 30e5daeeb3b..374a4bfaa60 100644 --- a/source/blender/blenkernel/intern/anim_sys.c +++ b/source/blender/blenkernel/intern/anim_sys.c @@ -183,8 +183,8 @@ short animsys_remap_path (AnimMapper *remap, char *path, char **dst) } -/* Write the given value to a setting using RNA */ -static void animsys_write_rna_setting (PointerRNA *ptr, char *path, int array_index, float value) +/* Write the given value to a setting using RNA, and return success */ +static short animsys_write_rna_setting (PointerRNA *ptr, char *path, int array_index, float value) { PropertyRNA *prop; PointerRNA new_ptr; @@ -222,6 +222,15 @@ static void animsys_write_rna_setting (PointerRNA *ptr, char *path, int array_in break; } } + + /* successful */ + // XXX should the unhandled case also be successful? + return 1; + } + else { + /* failed to get path */ + printf("Animato: Invalid path '%s[%d]' \n", path, array_index); + return 0; } } |