diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-10-22 22:19:55 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-10-22 22:19:55 +0400 |
commit | 948a9f16db33146b1c64411241f3e68c4afa9387 (patch) | |
tree | 803bbe935d920fbe45176ddcbfbe5e2a7146ee24 /source/blender/makesrna/intern/rna_userdef.c | |
parent | 5b0759fc0067b908241e76aa844e3c24271f5751 (diff) |
Fix build when WITH_INTERNATIONAL is disabled.
Diffstat (limited to 'source/blender/makesrna/intern/rna_userdef.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_userdef.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c index 24f856e67d4..c128f4ce7e5 100644 --- a/source/blender/makesrna/intern/rna_userdef.c +++ b/source/blender/makesrna/intern/rna_userdef.c @@ -410,12 +410,14 @@ static EnumPropertyItem *rna_userdef_compute_device_itemf(bContext *UNUSED(C), P } #endif +#ifdef WITH_INTERNATIONAL static EnumPropertyItem *rna_lang_enum_properties_itemf(bContext *UNUSED(C), PointerRNA *UNUSED(ptr), PropertyRNA *UNUSED(prop), int *free) { *free = 0; /* These items are handled by BLF code! */ return BLF_RNA_lang_enum_properties(); } +#endif #else @@ -3088,7 +3090,9 @@ static void rna_def_userdef_system(BlenderRNA *brna) prop = RNA_def_property(srna, "language", PROP_ENUM, PROP_NONE); RNA_def_property_enum_items(prop, language_items); +#ifdef WITH_INTERNATIONAL RNA_def_property_enum_funcs(prop, NULL, NULL, "rna_lang_enum_properties_itemf"); +#endif RNA_def_property_ui_text(prop, "Language", "Language used for translation"); RNA_def_property_update(prop, NC_WINDOW, "rna_userdef_language_update"); |