WIP: Brush assets project #106303

Draft
Julian Eisel wants to merge 357 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 17 additions and 17 deletions
Showing only changes of commit 2d45411108 - Show all commits

View File

@ -1818,23 +1818,23 @@ class _defs_paint_grease_pencil:
#
# @staticmethod
# def generate_from_brushes(context):
# # Though `data_block` is conceptually unnecessary with a single brush tool,
# # it's still used because many areas assume that brush tools have it set #bToolRef.
# tool = None
# if context:
# brush = context.tool_settings.gpencil_paint.brush
# if brush:
# tool = brush.gpencil_tool
# return [
# ToolDef.from_dict(
# dict(
# idname="builtin.brush",
# label="Brush",
# icon="brush.sculpt.paint",
# data_block=tool
# )
# )
# ]
# # Though `data_block` is conceptually unnecessary with a single brush tool,
# # it's still used because many areas assume that brush tools have it set #bToolRef.
# tool = None
# if context:
# brush = context.tool_settings.gpencil_paint.brush
# if brush:
# tool = brush.gpencil_tool
# return [
# ToolDef.from_dict(
# dict(
# idname="builtin.brush",
# label="Brush",
# icon="brush.sculpt.paint",
# data_block=tool
# )
# )
# ]
@ToolDef.from_fn
def draw():