diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-05-02 08:16:41 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-05-02 08:16:41 +0400 |
commit | 479b330ac5b33ee12f4c3c683b6888ed709b9b81 (patch) | |
tree | 821e02bb6c72fcd4c3e781ca6e4a11a73faf12cc /source/blender/makesrna/intern/rna_key.c | |
parent | 0fadb7e47968b73189ea11d832be582a63fda1e6 (diff) |
don't show an 'X' next to never-null pointer search menus.
also set ShapeKey.relative_key to never-null.
Diffstat (limited to 'source/blender/makesrna/intern/rna_key.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_key.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_key.c b/source/blender/makesrna/intern/rna_key.c index 4e8b8d7b1a7..3a2677c8398 100644 --- a/source/blender/makesrna/intern/rna_key.c +++ b/source/blender/makesrna/intern/rna_key.c @@ -572,7 +572,7 @@ static void rna_def_keyblock(BlenderRNA *brna) prop = RNA_def_property(srna, "relative_key", PROP_POINTER, PROP_NONE); RNA_def_property_struct_type(prop, "ShapeKey"); - RNA_def_property_flag(prop, PROP_EDITABLE); + RNA_def_property_flag(prop, PROP_EDITABLE | PROP_NEVER_NULL); RNA_def_property_pointer_funcs(prop, "rna_ShapeKey_relative_key_get", "rna_ShapeKey_relative_key_set", NULL, NULL); RNA_def_property_ui_text(prop, "Relative Key", "Shape used as a relative key"); |