[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [51514] trunk/blender/source/blender/ makesrna/intern/rna_userdef.c: Fix build when WITH_INTERNATIONAL is disabled.

Brecht Van Lommel brechtvanlommel at pandora.be
Mon Oct 22 20:19:56 CEST 2012


Revision: 51514
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=51514
Author:   blendix
Date:     2012-10-22 18:19:55 +0000 (Mon, 22 Oct 2012)
Log Message:
-----------
Fix build when WITH_INTERNATIONAL is disabled.

Modified Paths:
--------------
    trunk/blender/source/blender/makesrna/intern/rna_userdef.c

Modified: trunk/blender/source/blender/makesrna/intern/rna_userdef.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_userdef.c	2012-10-22 18:10:15 UTC (rev 51513)
+++ trunk/blender/source/blender/makesrna/intern/rna_userdef.c	2012-10-22 18:19:55 UTC (rev 51514)
@@ -410,12 +410,14 @@
 }
 #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 @@
 
 	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");
 




More information about the Bf-blender-cvs mailing list