From d984c46701280ab50a3ce2987d184ce780e113c6 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 28 Dec 2012 10:45:59 +0000 Subject: remove type checks on drawing uiList's, if the list is given the wrong item then the script needs to be fixed, better not fail silently. left in checks as commented out asserts. --- release/scripts/startup/bl_ui/properties_scene.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'release/scripts/startup/bl_ui/properties_scene.py') diff --git a/release/scripts/startup/bl_ui/properties_scene.py b/release/scripts/startup/bl_ui/properties_scene.py index 100c7d93c77..3230fb7392b 100644 --- a/release/scripts/startup/bl_ui/properties_scene.py +++ b/release/scripts/startup/bl_ui/properties_scene.py @@ -24,8 +24,7 @@ from rna_prop_ui import PropertyPanel class SCENE_UL_keying_set_paths(UIList): def draw_item(self, context, layout, data, item, icon, active_data, active_propname, index): - if not isinstance(item, bpy.types.KeyingSetPath): - return + # assert(isinstance(item, bpy.types.KeyingSetPath) kspath = item icon = layout.enum_item_icon(kspath, "id_type", kspath.id_type) if self.layout_type in {'DEFAULT', 'COMPACT'}: -- cgit v1.2.3