diff options
author | Joshua Leung <aligorith@gmail.com> | 2009-01-24 14:35:14 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2009-01-24 14:35:14 +0300 |
commit | e71d531238bf998f0ee5b06561462c84b89cce0d (patch) | |
tree | db7c0b5f9955f569ded73e6e65cff41e55435fca /source/blender/makesrna | |
parent | e42ed36b3b37480e2dc7b89f2dd51d1bc5278d59 (diff) |
Animato - Shapekeys work again
The RNA-wrapping for the 'value' (internally kb->curval) was set to be not editable, thus preventing Animato from writing to it. Removing the flag makes shapekeys more functional again (there are still a few non-functional cases).
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_key.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/makesrna/intern/rna_key.c b/source/blender/makesrna/intern/rna_key.c index cd133793500..48fc116d0bb 100644 --- a/source/blender/makesrna/intern/rna_key.c +++ b/source/blender/makesrna/intern/rna_key.c @@ -268,11 +268,9 @@ static void rna_def_keyblock(BlenderRNA *brna) RNA_def_property_flag(prop, PROP_NOT_EDITABLE); RNA_def_property_float_sdna(prop, NULL, "pos"); RNA_def_property_ui_text(prop, "Frame", "Frame for absolute keys."); - - /* the current value isn't easily editable this way, it's linked to an IPO. - * these seem to be mostly the values that are being written to, not edited */ + + /* for now, this is editable directly, as users can set this even if they're not animating them (to test results) */ prop= RNA_def_property(srna, "value", PROP_FLOAT, PROP_NONE); - RNA_def_property_flag(prop, PROP_NOT_EDITABLE); RNA_def_property_float_sdna(prop, NULL, "curval"); RNA_def_property_ui_text(prop, "Value", "Value of shape key at the current frame."); |