WIP: Brush assets project #106303
|
@ -1818,23 +1818,23 @@ class _defs_paint_grease_pencil:
|
||||||
#
|
#
|
||||||
# @staticmethod
|
# @staticmethod
|
||||||
# def generate_from_brushes(context):
|
# def generate_from_brushes(context):
|
||||||
# # Though `data_block` is conceptually unnecessary with a single brush 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.
|
# # it's still used because many areas assume that brush tools have it set #bToolRef.
|
||||||
# tool = None
|
# tool = None
|
||||||
# if context:
|
# if context:
|
||||||
# brush = context.tool_settings.gpencil_paint.brush
|
# brush = context.tool_settings.gpencil_paint.brush
|
||||||
# if brush:
|
# if brush:
|
||||||
# tool = brush.gpencil_tool
|
# tool = brush.gpencil_tool
|
||||||
# return [
|
# return [
|
||||||
# ToolDef.from_dict(
|
# ToolDef.from_dict(
|
||||||
# dict(
|
# dict(
|
||||||
# idname="builtin.brush",
|
# idname="builtin.brush",
|
||||||
# label="Brush",
|
# label="Brush",
|
||||||
# icon="brush.sculpt.paint",
|
# icon="brush.sculpt.paint",
|
||||||
# data_block=tool
|
# data_block=tool
|
||||||
# )
|
# )
|
||||||
# )
|
# )
|
||||||
# ]
|
# ]
|
||||||
|
|
||||||
@ToolDef.from_fn
|
@ToolDef.from_fn
|
||||||
def draw():
|
def draw():
|
||||||
|
|
Loading…
Reference in New Issue