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_material.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_material.c')
-rw-r--r--source/blender/makesrna/intern/rna_material.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/source/blender/makesrna/intern/rna_material.c b/source/blender/makesrna/intern/rna_material.c
index e03e221f822..74cb8675ad5 100644
--- a/source/blender/makesrna/intern/rna_material.c
+++ b/source/blender/makesrna/intern/rna_material.c
@@ -260,10 +260,6 @@ static EnumPropertyItem *rna_Material_texture_coordinates_itemf(bContext *C, Poi
EnumPropertyItem *item= NULL;
int totitem= 0;
- if(C==NULL) {
- return prop_texture_coordinates_items;
- }
-
RNA_enum_items_add_value(&item, &totitem, prop_texture_coordinates_items, TEXCO_GLOB);
RNA_enum_items_add_value(&item, &totitem, prop_texture_coordinates_items, TEXCO_OBJECT);
RNA_enum_items_add_value(&item, &totitem, prop_texture_coordinates_items, TEXCO_ORCO);
@@ -283,7 +279,6 @@ static EnumPropertyItem *rna_Material_texture_coordinates_itemf(bContext *C, Poi
}
RNA_enum_item_end(&item, &totitem);
-
*free= 1;
return item;