Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_view3d_toolbar.py
| Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| layout.prop_menu_enum(brush, "image_tool") | layout.prop_menu_enum(brush, "image_tool") | ||||
| elif context.vertex_paint_object: | elif context.vertex_paint_object: | ||||
| layout.prop_menu_enum(brush, "vertex_tool") | layout.prop_menu_enum(brush, "vertex_tool") | ||||
| elif context.weight_paint_object: | elif context.weight_paint_object: | ||||
| layout.prop_menu_enum(brush, "weight_tool") | layout.prop_menu_enum(brush, "weight_tool") | ||||
| elif context.sculpt_object: | elif context.sculpt_object: | ||||
| layout.prop_menu_enum(brush, "sculpt_tool") | layout.prop_menu_enum(brush, "sculpt_tool") | ||||
| layout.operator("brush.reset") | layout.operator("brush.reset") | ||||
| elif context.tool_settings.curves_sculpt: | |||||
| layout.prop_menu_enum(brush, "curves_sculpt_tool") | |||||
| class VIEW3D_MT_brush_gpencil_context_menu(Menu): | class VIEW3D_MT_brush_gpencil_context_menu(Menu): | ||||
| bl_label = "Brush Specials" | bl_label = "Brush Specials" | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| ts = context.tool_settings | ts = context.tool_settings | ||||
| ▲ Show 20 Lines • Show All 2,410 Lines • Show Last 20 Lines | |||||