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_image.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_image.c')
-rw-r--r--source/blender/makesrna/intern/rna_image.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_image.c b/source/blender/makesrna/intern/rna_image.c
index 521756b8539..44c55e821a9 100644
--- a/source/blender/makesrna/intern/rna_image.c
+++ b/source/blender/makesrna/intern/rna_image.c
@@ -128,9 +128,6 @@ static EnumPropertyItem *rna_Image_source_itemf(bContext *C, PointerRNA *ptr, in
EnumPropertyItem *item= NULL;
int totitem= 0;
- if(C==NULL) /* needed for doc generation */
- return image_source_items;
-
if(ima->source == IMA_SRC_VIEWER) {
RNA_enum_items_add_value(&item, &totitem, image_source_items, IMA_SRC_VIEWER);
}