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_physics_dynamicpaint.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_physics_dynamicpaint.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py b/release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py index b102f1b09d0..9393852b8a5 100644 --- a/release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py +++ b/release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py @@ -27,8 +27,7 @@ from bl_ui.properties_physics_common import (point_cache_ui, class PHYSICS_UL_dynapaint_surfaces(UIList): def draw_item(self, context, layout, data, item, icon, active_data, active_propname, index): - if not isinstance(item, bpy.types.DynamicPaintSurface): - return + # assert(isinstance(item, bpy.types.DynamicPaintSurface) surf = item sticon = layout.enum_item_icon(surf, "surface_type", surf.surface_type) if self.layout_type in {'DEFAULT', 'COMPACT'}: |