[Bf-blender-cvs] [9d0cf52] master: UI: correct __contains__ use, no need for substring check
Campbell Barton
noreply at git.blender.org
Thu Jun 12 14:09:09 CEST 2014
Commit: 9d0cf523b5ba452d6152e2d38c69014c1ecdfb34
Author: Campbell Barton
Date: Thu Jun 12 22:00:26 2014 +1000
https://developer.blender.org/rB9d0cf523b5ba452d6152e2d38c69014c1ecdfb34
UI: correct __contains__ use, no need for substring check
===================================================================
M release/scripts/startup/bl_ui/space_view3d_toolbar.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index c20c36b..904c7e3 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -1273,7 +1273,7 @@ class VIEW3D_PT_sculpt_dyntopo(Panel, View3DPaintPanel):
col = layout.column()
col.active = context.sculpt_object.use_dynamic_topology_sculpting
sub = col.column(align=True)
- sub.active = brush and brush.sculpt_tool not in ('MASK')
+ sub.active = (brush and brush.sculpt_tool != 'MASK')
if (sculpt.detail_type_method == 'CONSTANT'):
row = sub.row(align=True)
row.operator("sculpt.sample_detail_size", text="", icon='EYEDROPPER')
More information about the Bf-blender-cvs
mailing list