From 202109a8f5a8a1f82de6d765476ded85fe15ea59 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 11 Sep 2013 21:27:14 +0000 Subject: code cleanup: set enums as static or add RNA_enum_types.h where they are used elsewhere. also minor style cleanup. --- source/blender/makesrna/intern/rna_texture.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'source/blender/makesrna/intern/rna_texture.c') diff --git a/source/blender/makesrna/intern/rna_texture.c b/source/blender/makesrna/intern/rna_texture.c index be6defa11d7..2c68661f3bd 100644 --- a/source/blender/makesrna/intern/rna_texture.c +++ b/source/blender/makesrna/intern/rna_texture.c @@ -51,13 +51,15 @@ #include "WM_api.h" #include "WM_types.h" -EnumPropertyItem texture_filter_items[] = { +#ifndef RNA_RUNTIME +static EnumPropertyItem texture_filter_items[] = { {TXF_BOX, "BOX", 0, "Box", ""}, {TXF_EWA, "EWA", 0, "EWA", ""}, {TXF_FELINE, "FELINE", 0, "FELINE", ""}, {TXF_AREA, "AREA", 0, "Area", ""}, {0, NULL, 0, NULL, NULL} }; +#endif EnumPropertyItem texture_type_items[] = { {0, "NONE", 0, "None", ""}, @@ -82,7 +84,8 @@ EnumPropertyItem texture_type_items[] = { {0, NULL, 0, NULL, NULL} }; -EnumPropertyItem blend_type_items[] = { +#ifndef RNA_RUNTIME +static EnumPropertyItem blend_type_items[] = { {MTEX_BLEND, "MIX", 0, "Mix", ""}, {MTEX_ADD, "ADD", 0, "Add", ""}, {MTEX_SUB, "SUBTRACT", 0, "Subtract", ""}, @@ -101,6 +104,7 @@ EnumPropertyItem blend_type_items[] = { {MTEX_LIN_LIGHT, "LINEAR_LIGHT", 0, "Linear Light", ""}, {0, NULL, 0, NULL, NULL} }; +#endif #ifdef RNA_RUNTIME -- cgit v1.2.3