Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2009-10-14 23:19:43 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2009-10-14 23:19:43 +0400
commit991e67ddc756cdbf6e85b9a0520792d1f48026e4 (patch)
treeca930274523e3355cfda68939b45525c1bed93d0 /source/blender/makesrna/intern/rna_object_force.c
parent96d2dc7d090975687e5b99495fcc1e5725e75120 (diff)
RNA:
* Enums with an _itemf callback now never get context NULL passed in, rather a fixed list of enum items are defined which should contain all items (if possible), from which the _itemf callback can then use a subset.
Diffstat (limited to 'source/blender/makesrna/intern/rna_object_force.c')
-rw-r--r--source/blender/makesrna/intern/rna_object_force.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/source/blender/makesrna/intern/rna_object_force.c b/source/blender/makesrna/intern/rna_object_force.c
index 404223ab590..2247e5499fb 100644
--- a/source/blender/makesrna/intern/rna_object_force.c
+++ b/source/blender/makesrna/intern/rna_object_force.c
@@ -546,24 +546,6 @@ static EnumPropertyItem *rna_Effector_shape_itemf(bContext *C, PointerRNA *ptr,
{
Object *ob= NULL;
- if(C==NULL) {
- EnumPropertyItem *item= NULL;
- int totitem= 0;
-
- /* needed for doc generation */
- RNA_enum_items_add(&item, &totitem, effector_shape_items);
- RNA_enum_items_add(&item, &totitem, curve_shape_items);
- RNA_enum_items_add(&item, &totitem, empty_shape_items);
- RNA_enum_items_add(&item, &totitem, vortex_shape_items);
- RNA_enum_items_add(&item, &totitem, curve_vortex_shape_items);
- RNA_enum_items_add(&item, &totitem, empty_vortex_shape_items);
- RNA_enum_item_end(&item, &totitem);
-
- *free= 1;
-
- return item;
- }
-
if(particle_field_check(ptr))
return empty_shape_items;