Fix for errors caused by fixing RNA function register flags. Default UIList class...
authorLukas Toenne <lukas.toenne@googlemail.com>
Mon, 28 Jan 2013 12:18:00 +0000 (12:18 +0000)
committerLukas Toenne <lukas.toenne@googlemail.com>
Mon, 28 Jan 2013 12:18:00 +0000 (12:18 +0000)
release/scripts/startup/bl_ui/__init__.py
source/blender/makesrna/intern/rna_ui.c

index 982c723f08ea56a22024bc873f65610c6519ad7e..3bb19a4964dd8e19cba5c8688e1b8c980dec0459 100644 (file)
@@ -138,6 +138,7 @@ def unregister():
 
 # Define a default UIList, when a list does not need any custom drawing...
 class UI_UL_list(bpy.types.UIList):
-    pass
+    def draw_item(self, context, layout, data, item, icon, active_data, active_propname, index):
+        pass
 
 bpy.utils.register_class(UI_UL_list)
index fad93ea9054d0d4ade68ec80946e5ea07d4dfd3a..f3921b2412a73a1f298fb3a35e9c27b99538713f 100644 (file)
@@ -791,7 +791,7 @@ static void rna_def_panel(BlenderRNA *brna)
 
        func = RNA_def_function(srna, "draw_header", NULL);
        RNA_def_function_ui_description(func, "Draw UI elements into the panel's header UI layout");
-       RNA_def_function_flag(func, FUNC_REGISTER);
+       RNA_def_function_flag(func, FUNC_REGISTER_OPTIONAL);
        parm = RNA_def_pointer(func, "context", "Context", "", "");
        RNA_def_property_flag(parm, PROP_REQUIRED | PROP_NEVER_NULL);