diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-07-14 21:35:07 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-07-14 21:35:07 +0400 |
commit | 4b3dafcaa765249c0787b41df014f32863cd202f (patch) | |
tree | e41aa61d9d83a3b6a2ebc24a7e6a1772e713a57a /source/blender/editors/transform | |
parent | 42e2796a51a69de8f04ee12b606e169537b29a3a (diff) |
RNA
* RNA_enum_items_add_value and RNA_enum_item_add_separator utility
functions, to add an item from an existing array with a certain
value, and to add a separator.
Diffstat (limited to 'source/blender/editors/transform')
-rw-r--r-- | source/blender/editors/transform/transform_orientations.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/editors/transform/transform_orientations.c b/source/blender/editors/transform/transform_orientations.c index 6d60c7602f4..605eb6996a5 100644 --- a/source/blender/editors/transform/transform_orientations.c +++ b/source/blender/editors/transform/transform_orientations.c @@ -366,7 +366,6 @@ EnumPropertyItem *BIF_enumTransformOrientation(bContext *C) EnumPropertyItem normal = {V3D_MANIP_NORMAL, "NORMAL", 0, "Normal", ""}; EnumPropertyItem local = {V3D_MANIP_LOCAL, "LOCAL", 0, "Local", ""}; EnumPropertyItem view = {V3D_MANIP_VIEW, "VIEW", 0, "View", ""}; - EnumPropertyItem sepr = {0, "", 0, NULL, NULL}; EnumPropertyItem tmp = {0, "", 0, "", ""}; EnumPropertyItem *item= NULL; int i = V3D_MANIP_CUSTOM, totitem= 0; @@ -386,7 +385,7 @@ EnumPropertyItem *BIF_enumTransformOrientation(bContext *C) } if(ts) - RNA_enum_item_add(&item, &totitem, &sepr); + RNA_enum_item_add_separator(&item, &totitem); for(; ts; ts = ts->next) { tmp.identifier = "CUSTOM"; |