Cleanup: follow Python code-style/conventions
This commit is contained in:
parent
3a038f8a60
commit
6bb28a1a52
|
@ -461,6 +461,7 @@ class USERPREF_PT_edit_weight_paint(EditingPanel, CenterAlignMixIn, Panel):
|
|||
col.active = view.use_weight_color_range
|
||||
col.template_color_ramp(view, "weight_color_range", expand=True)
|
||||
|
||||
|
||||
class USERPREF_PT_edit_text_editor(EditingPanel, CenterAlignMixIn, Panel):
|
||||
bl_label = "Text Editor"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
|
|
|
@ -492,7 +492,7 @@ class _draw_tool_settings_context_mode:
|
|||
header=True
|
||||
)
|
||||
|
||||
if brush.curves_sculpt_tool not in ("ADD", "DELETE"):
|
||||
if brush.curves_sculpt_tool not in {'ADD', 'DELETE'}:
|
||||
UnifiedPaintPanel.prop_unified(
|
||||
layout,
|
||||
context,
|
||||
|
@ -502,7 +502,7 @@ class _draw_tool_settings_context_mode:
|
|||
header=True
|
||||
)
|
||||
|
||||
if brush.curves_sculpt_tool == "ADD":
|
||||
if brush.curves_sculpt_tool == 'ADD':
|
||||
layout.prop(brush, "use_frontface")
|
||||
layout.prop(brush, "falloff_shape", expand=True)
|
||||
layout.prop(brush.curves_sculpt_settings, "add_amount")
|
||||
|
@ -510,11 +510,10 @@ class _draw_tool_settings_context_mode:
|
|||
layout.prop(tool_settings.curves_sculpt, "interpolate_length")
|
||||
layout.prop(tool_settings.curves_sculpt, "interpolate_shape")
|
||||
|
||||
if brush.curves_sculpt_tool == "TEST1":
|
||||
if brush.curves_sculpt_tool == 'TEST1':
|
||||
layout.prop(tool_settings.curves_sculpt, "distance")
|
||||
|
||||
|
||||
|
||||
class VIEW3D_HT_header(Header):
|
||||
bl_space_type = 'VIEW_3D'
|
||||
|
||||
|
|
|
@ -675,7 +675,7 @@ class VIEW3D_PT_tools_brush_stroke_smooth_stroke(Panel, View3DPaintPanel, Smooth
|
|||
class VIEW3D_PT_tools_weight_gradient(Panel, View3DPaintPanel):
|
||||
# dont give context on purpose to not show this in the generic header toolsettings
|
||||
# this is added only in the gradient tool's ToolDef
|
||||
#bl_context = ".weightpaint" # dot on purpose (access from topbar)
|
||||
# bl_context = ".weightpaint" # dot on purpose (access from topbar)
|
||||
bl_label = "Falloff"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
# also dont draw as an extra panel in the sidebar (already included in the Brush settings)
|
||||
|
|
Loading…
Reference in New Issue