WIP: Brush assets project #106303

Draft
Julian Eisel wants to merge 351 commits from brush-assets-project into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 10 additions and 12 deletions
Showing only changes of commit f6898f9bcb - Show all commits

View File

@ -1384,12 +1384,11 @@ class _defs_sculpt:
@staticmethod
def generate_brush_tool(context):
if not context:
return ()
brush = context.tool_settings.sculpt.brush
if not brush:
return ()
tool = brush.sculpt_tool
tool = None
if context:
brush = context.tool_settings.sculpt.brush
if brush:
tool = brush.sculpt_tool
return [
ToolDef.from_dict(
dict(
@ -2449,12 +2448,11 @@ class _defs_curves_sculpt:
@staticmethod
def generate_brush_tool(context):
if not context:
return ()
brush = context.tool_settings.curves_sculpt.brush
if not brush:
return ()
tool = brush.curves_sculpt_tool
tool = None
if context:
brush = context.tool_settings.sculpt.brush
if brush:
tool = brush.curves_sculpt_tool
return [
ToolDef.from_dict(
dict(