Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
| Show First 20 Lines • Show All 1,384 Lines • ▼ Show 20 Lines | def curve(): | ||||
| label="Curve", | label="Curve", | ||||
| icon="ops.gpencil.primitive_curve", | icon="ops.gpencil.primitive_curve", | ||||
| cursor='CROSSHAIR', | cursor='CROSSHAIR', | ||||
| widget=None, | widget=None, | ||||
| keymap=(), | keymap=(), | ||||
| ) | ) | ||||
| @ToolDef.from_fn | |||||
| def eyedropper(): | |||||
brecht: I think it would make sense to have "Raw Mode" as a tool setting, otherwise it's quite hidden. | |||||
| return dict( | |||||
| idname="builtin.eyedropper", | |||||
| label="Eyedropper", | |||||
| icon="ops.paint.weight_sample", | |||||
| cursor='EYEDROPPER', | |||||
| widget=None, | |||||
| keymap=(), | |||||
| ) | |||||
| class _defs_gpencil_edit: | class _defs_gpencil_edit: | ||||
| @ToolDef.from_fn | @ToolDef.from_fn | ||||
| def bend(): | def bend(): | ||||
| return dict( | return dict( | ||||
| idname="builtin.bend", | idname="builtin.bend", | ||||
| label="Bend", | label="Bend", | ||||
| icon="ops.gpencil.edit_bend", | icon="ops.gpencil.edit_bend", | ||||
| widget=None, | widget=None, | ||||
| ▲ Show 20 Lines • Show All 635 Lines • ▼ Show 20 Lines | _tools = { | ||||
| *_tools_annotate, | *_tools_annotate, | ||||
| ], | ], | ||||
| 'PAINT_GPENCIL': [ | 'PAINT_GPENCIL': [ | ||||
| _defs_view3d_generic.cursor, | _defs_view3d_generic.cursor, | ||||
| None, | None, | ||||
| _defs_gpencil_paint.generate_from_brushes, | _defs_gpencil_paint.generate_from_brushes, | ||||
| _defs_gpencil_paint.cutter, | _defs_gpencil_paint.cutter, | ||||
| None, | None, | ||||
| _defs_gpencil_paint.eyedropper, | |||||
| None, | |||||
| _defs_gpencil_paint.line, | _defs_gpencil_paint.line, | ||||
| _defs_gpencil_paint.arc, | _defs_gpencil_paint.arc, | ||||
| _defs_gpencil_paint.curve, | _defs_gpencil_paint.curve, | ||||
| _defs_gpencil_paint.box, | _defs_gpencil_paint.box, | ||||
| _defs_gpencil_paint.circle, | _defs_gpencil_paint.circle, | ||||
| ], | ], | ||||
| 'EDIT_GPENCIL': [ | 'EDIT_GPENCIL': [ | ||||
| *_tools_gpencil_select, | *_tools_gpencil_select, | ||||
| Show All 38 Lines | |||||
I think it would make sense to have "Raw Mode" as a tool setting, otherwise it's quite hidden.