Cleanup: line wrapping, remove unused args, variables in UI scripts

This commit is contained in:
2022-04-06 09:40:14 +10:00
parent a776385b26
commit 11b0824d89
5 changed files with 16 additions and 18 deletions

View File

@@ -1307,17 +1307,12 @@ class _defs_sculpt:
@staticmethod
def generate_from_brushes(context):
exclude_filter = {}
# Use 'bpy.context' instead of 'context' since it can be None.
prefs = bpy.context.preferences
return generate_from_enum_ex(
context,
idname_prefix="builtin_brush.",
icon_prefix="brush.sculpt.",
type=bpy.types.Brush,
attr="sculpt_tool",
exclude_filter=exclude_filter,
)
@ToolDef.from_fn