This patch creates an interface for ["Text"] properties in Font objects.
[blender.git] / source / blender / makesrna / intern / rna_property.c
index e8ef61b6d74c0ac1a5e0625a370e546cab1d27fb..dfdc175d18be4c0a2b23496594967765e8ec9af6 100644 (file)
 
 #include "WM_types.h"
 
+EnumPropertyItem gameproperty_type_items[] ={
+       {GPROP_BOOL, "BOOL", 0, "Boolean", "Boolean Property"},
+       {GPROP_INT, "INT", 0, "Integer", "Integer Property"},
+       {GPROP_FLOAT, "FLOAT", 0, "Float", "Floating-Point Property"},
+       {GPROP_STRING, "STRING", 0, "String", "String Property"},
+       {GPROP_TIME, "TIMER", 0, "Timer", "Timer Property"},
+       {0, NULL, 0, NULL, NULL}};
+
+
 #ifdef RNA_RUNTIME
 
 #include "BKE_property.h"
@@ -98,14 +107,6 @@ void RNA_def_gameproperty(BlenderRNA *brna)
        StructRNA *srna;
        PropertyRNA *prop;
 
-       static EnumPropertyItem gameproperty_type_items[] ={
-               {GPROP_BOOL, "BOOL", 0, "Boolean", "Boolean Property"},
-               {GPROP_INT, "INT", 0, "Integer", "Integer Property"},
-               {GPROP_FLOAT, "FLOAT", 0, "Float", "Floating-Point Property"},
-               {GPROP_STRING, "STRING", 0, "String", "String Property"},
-               {GPROP_TIME, "TIMER", 0, "Timer", "Timer Property"},
-               {0, NULL, 0, NULL, NULL}};
-
        /* Base Struct for GameProperty */
        srna= RNA_def_struct(brna, "GameProperty", NULL);
        RNA_def_struct_ui_text(srna , "Game Property", "Game engine user defined object property");