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_mask_common.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_mask_common.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_mask_common.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/properties_mask_common.py b/release/scripts/startup/bl_ui/properties_mask_common.py index ea04b79357e..9861db39f30 100644 --- a/release/scripts/startup/bl_ui/properties_mask_common.py +++ b/release/scripts/startup/bl_ui/properties_mask_common.py @@ -27,8 +27,7 @@ from bpy.types import Menu, UIList class MASK_UL_layers(UIList): def draw_item(self, context, layout, data, item, icon, active_data, active_propname, index): - if not isinstance(item, bpy.types.MaskLayer): - return + # assert(isinstance(item, bpy.types.MaskLayer) mask = item if self.layout_type in {'DEFAULT', 'COMPACT'}: split = layout.split() |