remove type checks on drawing uiList's,
[blender.git] / release / scripts / startup / bl_ui / properties_material.py
index df676499cfb64b1fa94bfaf54452651fdd535381..7e18cf8908035e09cc1838d701424fbc61b1d244 100644 (file)
@@ -71,8 +71,7 @@ class MATERIAL_MT_specials(Menu):
 
 class MATERIAL_UL_matslots(UIList):
     def draw_item(self, context, layout, data, item, icon, active_data, active_propname, index):
-        if not isinstance(item, bpy.types.MaterialSlot):
-            return
+        # assert(isinstance(item, bpy.types.MaterialSlot)
         ob = data
         slot = item
         ma = slot.material