Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-12-28 14:45:59 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-12-28 14:45:59 +0400
commitd984c46701280ab50a3ce2987d184ce780e113c6 (patch)
treecb6682a6b1bf6164ab87cc0124cde64689485fca /release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py
parent914b0aafa5693f5808f14522dcc57d9f2a695db0 (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.py3
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'}: