diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-12-28 14:45:59 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-12-28 14:45:59 +0400 |
commit | d984c46701280ab50a3ce2987d184ce780e113c6 (patch) | |
tree | cb6682a6b1bf6164ab87cc0124cde64689485fca /release/scripts/startup/bl_ui/properties_scene.py | |
parent | 914b0aafa5693f5808f14522dcc57d9f2a695db0 (diff) |
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.
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_scene.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_scene.py | 3 |
1 files changed, 1 insertions, 2 deletions
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'}: |