diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-12-19 02:34:19 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-12-19 02:34:19 +0300 |
commit | 9178dc859638815ec38d9b95d2df723892c1af38 (patch) | |
tree | e8bbe634c47785fae6d74e67daaf9e88dd9eeb1f /source/blender/makesrna/intern/rna_key.c | |
parent | 1dcbafa4e449818c54af34c33d1b97c5c49d6336 (diff) |
Small RNA changes
* rna_validate_identifier now checks identifiers are not python keywords such as if, and, from (builtins like max, object and sort are ok)
* rna_validate_identifier prints an error explaining why it fails
* renamed Struct's "from" to "base" - to point to the struct inherited from.
* renamed ImageUsers's "pass" and "layer" to "renderPass" and "renderLayer"
* use the identifier as the key for ENUM's (matching structs and properties)
Diffstat (limited to 'source/blender/makesrna/intern/rna_key.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_key.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_key.c b/source/blender/makesrna/intern/rna_key.c index 5726ad93244..ee0308c3782 100644 --- a/source/blender/makesrna/intern/rna_key.c +++ b/source/blender/makesrna/intern/rna_key.c @@ -326,8 +326,9 @@ static void rna_def_key(BlenderRNA *brna) rna_def_ipo_common(srna); - prop= RNA_def_property(srna, "from", PROP_POINTER, PROP_NONE); - RNA_def_property_ui_text(prop, "From", "Datablock using these shape keys."); + prop= RNA_def_property(srna, "user", PROP_POINTER, PROP_NONE); + RNA_def_property_pointer_sdna(prop, NULL, "from"); + RNA_def_property_ui_text(prop, "User", "Datablock using these shape keys."); prop= RNA_def_property(srna, "relative", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "type", KEY_RELATIVE); |